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:
Anna.Kozlova
2016-11-21 11:02:15 +01:00
parent c4be95506d
commit 7ffa9bd6ca
17 changed files with 273 additions and 154 deletions
@@ -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;
}
}