mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
simplified hashCode for nullable arrays (IDEA-144775)
This commit is contained in:
@@ -20,9 +20,9 @@ class Test {
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int result = myOs != null ? Arrays.hashCode(myOs) : 0;
|
||||
result = 31 * result + (myIIs != null ? Arrays.deepHashCode(myIIs) : 0);
|
||||
result = 31 * result + (myIs != null ? Arrays.hashCode(myIs) : 0);
|
||||
int result = Arrays.hashCode(myOs);
|
||||
result = 31 * result + Arrays.deepHashCode(myIIs);
|
||||
result = 31 * result + Arrays.hashCode(myIs);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user