}
@Override
- @SuppressFBWarnings("NP_NONNULL_RETURN_VIOLATION")
@Nullable String appTag() {
return null;
}
@Override
public final boolean equals(final @Nullable Object obj) {
- if (this == obj) {
- return true;
- }
- if (!(obj instanceof CanonicalValueViolation)) {
- return false;
- }
- final CanonicalValueViolation other = (CanonicalValueViolation) obj;
- return Objects.equals(appTag(), other.appTag()) && Objects.equals(message(), other.message());
+ return this == obj || obj instanceof CanonicalValueViolation other
+ && Objects.equals(appTag(), other.appTag()) && Objects.equals(message(), other.message());
}
@Override