Skip to content

Commit

Permalink
no inner loop
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed May 31, 2024
1 parent 6f21dad commit a9218d2
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,19 +357,19 @@ private static void propertywiseLine(ParsePosition pp, String line, String file,
}
final var iup = IndexUnicodeProperties.make(Settings.latestVersion);
final List<String> errorMessageLines = new ArrayList<>();
properties:
for (var p : UcdProperty.values()) {
final var property = iup.getProperty(p);
for (String alias : property.getNameAliases()) {
if (excludedProperties.contains(alias)) {
continue properties;
}
if (property.getNameAliases().stream()
.anyMatch(alias -> excludedProperties.contains(alias))) {
continue;
}
final int first = set.charAt(0);
String p1 = property.getValue(first);
for (var range : set.ranges()) {
for (int c = range.codepoint; c <= range.codepointEnd; ++c) {
if (c == first) { continue; }
if (c == first) {
continue;
}
String p2 = property.getValue(c);
if (!Objects.equals(p1, p2)) {
if (IndexUnicodeProperties.getResolvedDefaultValueType(p)
Expand Down

0 comments on commit a9218d2

Please sign in to comment.