- 
    Enhancement 
- 
    Resolution: Fixed
- 
     P5 P5
- 
    None
- 
        b07
                                int index = invalidComponents.indexOf(component);
if(index != -1) {
invalidComponents.remove(index);
}
No need to call List.indexOf(Object) before List.remove(int). Instead we can call List.remove(Object) directly. It's faster and cleaner.
invalidComponents is an ArrayList.
if(index != -1) {
invalidComponents.remove(index);
}
No need to call List.indexOf(Object) before List.remove(int). Instead we can call List.remove(Object) directly. It's faster and cleaner.
invalidComponents is an ArrayList.
- links to
- 
                     Commit(master)
        openjdk/jdk/20b5f097 Commit(master)
        openjdk/jdk/20b5f097
- 
                     Review(master)
        openjdk/jdk/24845 Review(master)
        openjdk/jdk/24845