Polish dashIgnoringElementEquals()

See gh-16671
This commit is contained in:
Johnny Lim 2019-04-27 00:27:33 +09:00 committed by Phillip Webb
parent ec72d2874c
commit a89e6ff67c
1 changed files with 8 additions and 4 deletions

View File

@ -394,12 +394,16 @@ public final class ConfigurationPropertyName
i2++; i2++;
} }
} }
boolean indexed2 = e2.getType(i).isIndexed(); if (i2 < l2) {
while (i2 < l2) { if (e2.getType(i).isIndexed()) {
char ch2 = e2.charAt(i, i2++);
if (indexed2 || ch2 != '-') {
return false; return false;
} }
do {
if (e2.charAt(i, i2++) != '-') {
return false;
}
}
while (i2 < l2);
} }
return true; return true;
} }