review comments

This commit is contained in:
Ganesh Pagade 2019-03-09 15:06:07 +05:30
parent 02fd91ad35
commit 213349420b

View File

@ -29,7 +29,8 @@ public class MyClass {
this.name = name;
}
@Override public boolean equals(Object o) {
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
@ -40,7 +41,8 @@ public class MyClass {
return id == myClass.id && Objects.equals(name, myClass.name);
}
@Override public int hashCode() {
@Override
public int hashCode() {
return Objects.hash(id, name);
}