mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish dashIgnoringElementEquals()
See gh-16671
This commit is contained in:
parent
ec72d2874c
commit
a89e6ff67c
@ -394,12 +394,16 @@ public final class ConfigurationPropertyName
|
||||
i2++;
|
||||
}
|
||||
}
|
||||
boolean indexed2 = e2.getType(i).isIndexed();
|
||||
while (i2 < l2) {
|
||||
char ch2 = e2.charAt(i, i2++);
|
||||
if (indexed2 || ch2 != '-') {
|
||||
if (i2 < l2) {
|
||||
if (e2.getType(i).isIndexed()) {
|
||||
return false;
|
||||
}
|
||||
do {
|
||||
if (e2.charAt(i, i2++) != '-') {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
while (i2 < l2);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user