mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-42341 - SIOOBE: StringUtil.fixVariableNameDerivedFromPropertyName
This commit is contained in:
@@ -2011,6 +2011,7 @@ public class StringUtil extends StringUtilRt {
|
||||
|
||||
@NotNull
|
||||
public static String fixVariableNameDerivedFromPropertyName(@NotNull String name) {
|
||||
if (isEmptyOrSpaces(name)) return name;
|
||||
char c = name.charAt(0);
|
||||
if (isVowel(c)) {
|
||||
return "an" + Character.toUpperCase(c) + name.substring(1);
|
||||
|
||||
Reference in New Issue
Block a user