mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 04:37:32 +07:00
override/implement annotation settings (IDEA-58379)
annotations are removed by default for both return and parameters, custom OverrideImplementHandlers can provide predefined annotations which must be repeat in overriders, custom annotations can be configured by the user
This commit is contained in:
@@ -13,16 +13,16 @@ class Test {
|
||||
|
||||
// Probably incorrect - comparing Object[] arrays with Arrays.equals
|
||||
if (!Arrays.equals(myOs, test.myOs)) return false;
|
||||
// Compare nested arrays - values of myIIs here
|
||||
if (!Arrays.deepEquals(myIIs, test.myIIs)) return false;
|
||||
if (!Arrays.equals(myIs, test.myIs)) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
int result = myOs != null ? myOs.hashCode() : 0;
|
||||
result = 31 * result + (myIIs != null ? myIIs.hashCode() : 0);
|
||||
result = 31 * result + (myIs != null ? myIs.hashCode() : 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