Back to Error Prone

SelfComparison

docs/bugpattern/SelfComparison.md

2.49.0153 B
Original Source

The arguments to compareTo method are the same object, so it always returns 0. Either change the arguments to point to different objects or substitute 0.