mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-21 20:30:39 +00:00
8231990: Remove unnecessary else-if branch in Types.union
Reviewed-by: mcimadamore
This commit is contained in:
parent
3c9b6d8554
commit
990ae581ac
@ -3745,12 +3745,9 @@ public class Types {
|
||||
return cl1;
|
||||
} else if (shouldSkip.test(cl1.head, cl2.head)) {
|
||||
return union(cl1.tail, cl2.tail, shouldSkip).prepend(cl1.head);
|
||||
} else if (cl1.head.tsym.precedes(cl2.head.tsym, this)) {
|
||||
return union(cl1.tail, cl2, shouldSkip).prepend(cl1.head);
|
||||
} else if (cl2.head.tsym.precedes(cl1.head.tsym, this)) {
|
||||
return union(cl1, cl2.tail, shouldSkip).prepend(cl2.head);
|
||||
} else {
|
||||
// unrelated types
|
||||
return union(cl1.tail, cl2, shouldSkip).prepend(cl1.head);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user