effectivejava icon indicating copy to clipboard operation
effectivejava copied to clipboard

Item 8: float and double fields

Open ftomassetti opened this issue 11 years ago • 3 comments

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.

ftomassetti avatar Jul 21 '14 19:07 ftomassetti

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.

ftomassetti avatar May 06 '15 15:05 ftomassetti

This is blocked by #54

ftomassetti avatar May 06 '15 16:05 ftomassetti

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

ftomassetti avatar Jun 11 '15 16:06 ftomassetti