From a782fa8b072e8a790aad64e05e350370c8bb9b07 Mon Sep 17 00:00:00 2001 From: Sergey Simonchik Date: Tue, 14 Apr 2015 18:03:29 +0300 Subject: [PATCH] undeprecate StringUtil.stripQuotesAroundValue in order to allow valid odd usages, update its javadoc and add SSR --- .../src/com/intellij/openapi/util/text/StringUtil.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/platform/util/src/com/intellij/openapi/util/text/StringUtil.java b/platform/util/src/com/intellij/openapi/util/text/StringUtil.java index efff439b12c2..ebfc3caf7161 100644 --- a/platform/util/src/com/intellij/openapi/util/text/StringUtil.java +++ b/platform/util/src/com/intellij/openapi/util/text/StringUtil.java @@ -1503,14 +1503,13 @@ public class StringUtil extends StringUtilRt { } /** - * Strips quotes around the value. - * Quotes are removed even if leading and trailing quotes are different or if there is only one quote (leading or trailing). - * @deprecated use {@link com.intellij.openapi.util.text.StringUtil#unquoteString(String)} instead - * To be removed in IDEA 17 + * Consider using {@link StringUtil#unquoteString(String)} instead. + * Note: this method has an odd behavior: + * Quotes are removed even if leading and trailing quotes are different or + * if there is only one quote (leading or trailing). */ @NotNull @Contract(pure = true) - @Deprecated public static String stripQuotesAroundValue(@NotNull String text) { final int len = text.length(); if (len > 0) { -- 2.32.0