mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
undeprecate StringUtil.stripQuotesAroundValue in order to allow valid odd usages, update its javadoc and add SSR
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user