mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8056951: pico-optimize contains(Object) methods
Use idiiom >= 0 consistently to check for valid index Reviewed-by: mduigou
This commit is contained in:
parent
ba917d9443
commit
95a1c8965d
4 changed files with 4 additions and 4 deletions
|
@ -3865,7 +3865,7 @@ public class Arrays {
|
|||
|
||||
@Override
|
||||
public boolean contains(Object o) {
|
||||
return indexOf(o) != -1;
|
||||
return indexOf(o) >= 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue