mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
generate hashCode: prevent conflicts with 'Arrays' name
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
class Arrays {
|
||||
int[] i;
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
final Arrays arrays = (Arrays) o;
|
||||
|
||||
if (!java.util.Arrays.equals(i, arrays.i)) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return i != null ? i.hashCode() : 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class Arrays {
|
||||
int[] i;
|
||||
}
|
||||
Reference in New Issue
Block a user