Merge branch 'JDK-8367499' into JDK-8367530

This commit is contained in:
Jan Lahoda 2025-10-09 17:02:55 +02:00
commit d35773cb99

View File

@ -490,7 +490,6 @@ public class ExhaustivenessComputer {
continue NEXT_PATTERN;
}
} else {
boolean foundMatchingReplaced = false;
Set<PatternDescription> pendingReplacedPatterns = new HashSet<>(replaces.getOrDefault(rpOther.nested[i], Set.of()));
while (!pendingReplacedPatterns.isEmpty()) {
@ -499,15 +498,12 @@ public class ExhaustivenessComputer {
pendingReplacedPatterns.remove(currentReplaced);
if (nestedRPOne.equals(currentReplaced)) {
foundMatchingReplaced = true;
break;
continue ACCEPT;
}
pendingReplacedPatterns.addAll(replaces.getOrDefault(currentReplaced, Set.of()));
}
if (!foundMatchingReplaced) {
continue NEXT_PATTERN;
}
continue NEXT_PATTERN;
}
} else {
continue NEXT_PATTERN;