gpx-animator icon indicating copy to clipboard operation
gpx-animator copied to clipboard

SpotBugs must fix equals warning for Java records

Open McPringle opened this issue 3 years ago • 1 comments

There is an annoying bug / open issue with SpotBugs: It does not recognize the equals implementation of Java records as acceptable and issues a warning.

Details: https://github.com/spotbugs/spotbugs/issues/1367

In some places in the source code this warning is actively suppressed. After fixing the bug and updating SpotBugs, this suppression can be removed again.

@SuppressFBWarnings("EQ_UNUSUAL") // TODO SpotBugs 4.2.0 does not know how to handle the equals method of Java records #305

McPringle avatar Jan 16 '21 18:01 McPringle

i didnt found the mentioned annotation "@SuppressFBWarnings("EQ_UNUSUAL")" in the code. This issue might be closable.

ky0n avatar Jan 21 '24 15:01 ky0n