Skip to content

Generated equals(Object) method parameter should be @Nullable #73

@pettermahlen

Description

@pettermahlen

In AutoValue,

  @Override
  public boolean equals(Object o) {
  // ...

should be

  @Override
  public boolean equals(@Nullable Object o) {
  // ...

I think it's better form, and without it, AutoValue doesn't play nicely with Guava's AbstractPackageSanityTests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions