-
Enhancement
-
Resolution: Unresolved
-
P5
-
None
-
None
-
In Review
No need to call List.indexOf before List.remove. Instead we can use boolean returned by List.remove
List<String> history = horizontal ? horizontalHistory :
verticalHistory;
if (history.contains(name)) {
history.remove(name);
valid = false;
List<String> history = horizontal ? horizontalHistory :
verticalHistory;
if (history.contains(name)) {
history.remove(name);
valid = false;
- links to
-
Review(master) openjdk/jdk/24852