removed new String(string)

This commit is contained in:
Alexey Kudravtsev
2017-05-05 15:43:18 +03:00
parent 705dc1938e
commit e01164a7eb
8 changed files with 10 additions and 15 deletions

View File

@@ -111,8 +111,7 @@ public abstract class PsiNameHelper {
}
}
String sub = referenceText.substring(i + 1, lessPos).trim();
return sub.length() == referenceText.length() ? sub : new String(sub);
return referenceText.substring(i + 1, lessPos).trim();
}
@NotNull