File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/jdk.compiler/share/classes/com/sun/tools/javac/comp Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1080,7 +1080,6 @@ private Set<PatternDescription> reduceNestedPatterns(Set<PatternDescription> pat
10801080 continue NEXT_PATTERN ;
10811081 }
10821082 } else if (rpOne .nested [i ] instanceof RecordPattern nestedRPOne ) {
1083- boolean foundMatchingReplaced = false ;
10841083 Set <PatternDescription > pendingReplacedPatterns = new HashSet <>(replaces .getOrDefault (rpOther .nested [i ], Set .of ()));
10851084
10861085 while (!pendingReplacedPatterns .isEmpty ()) {
@@ -1089,15 +1088,12 @@ private Set<PatternDescription> reduceNestedPatterns(Set<PatternDescription> pat
10891088 pendingReplacedPatterns .remove (currentReplaced );
10901089
10911090 if (nestedRPOne .equals (currentReplaced )) {
1092- foundMatchingReplaced = true ;
1093- break ;
1091+ continue ACCEPT ;
10941092 }
10951093
10961094 pendingReplacedPatterns .addAll (replaces .getOrDefault (currentReplaced , Set .of ()));
10971095 }
1098- if (!foundMatchingReplaced ) {
1099- continue NEXT_PATTERN ;
1100- }
1096+ continue NEXT_PATTERN ;
11011097 } else {
11021098 continue NEXT_PATTERN ;
11031099 }
You can’t perform that action at this time.
0 commit comments