Here is what IDEA generated for me: ``` class A { ...
# announcements
c
Here is what IDEA generated for me:
Copy code
class A {
  private Integer a;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    A a1 = (A) o;

    return a != null ? a.equals(a1.a) : a1.a == null;

  }

  @Override
  public int hashCode() {
    return a != null ? a.hashCode() : 0;
  }
}