undeprecate StringUtil.stripQuotesAroundValue in order to allow valid odd usages, update its javadoc and add SSR

This commit is contained in:
Sergey Simonchik
2015-04-14 18:03:29 +03:00
parent b4badef6fe
commit a782fa8b07
@@ -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) {