Remove unnecessary condition in ConfigurationPropertyName

Closes gh-11486
This commit is contained in:
Johnny Lim 2018-01-04 00:27:37 +09:00 committed by Stephane Nicoll
parent a38d99762c
commit 67a5144112
1 changed files with 1 additions and 6 deletions

View File

@ -409,12 +409,7 @@ public final class ConfigurationPropertyName
}
private static boolean isIndexed(CharSequence element) {
int length = element.length();
return charAt(element, 0) == '[' && charAt(element, length - 1) == ']';
}
private static char charAt(CharSequence element, int index) {
return (index < element.length() ? element.charAt(index) : 0);
return element.charAt(0) == '[' && element.charAt(element.length() - 1) == ']';
}
/**