-
Enhancement
-
Resolution: Fixed
-
P5
-
None
-
None
-
b10
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
-
Commit(master) openjdk/jdk/8269fdc7
-
Review(master) openjdk/jdk/24852