effectivejava
effectivejava copied to clipboard
Item 8: float and double fields
In the equals method float and double fields should be compared using Float.compare and Double.compare because of the existence of NaN and -0.0f (see Float documentation).
We could write a query that check that.
Anyway to solve this one we need to be able to solve symbols, which is not provided out of the box in Javaparser. So we need to first build that functionality.
This is blocked by #54
This is not blocked anymore. Rejoyce!
We should first of all verify that this is an equals method taking an Object and then look for all comparison contained