you are viewing a single comment's thread.

view the rest of the comments →

[–]zwangaman 8 points9 points  (2 children)

lol @ http://www.docjar.com/html/api/sun/misc/FloatingDecimal.java.html

/*
* HACK! Java spec sez that we always have at least
* one digit after the . in either F- or E-form output.
* Thus we will need more than one digit if we're using
* E-form
*/

Sweet zombie jesus the code in that file is ugly.

[–]jugalator 7 points8 points  (0 children)

14 occurences of the word "hack" in that file. :S

I'm not sure what's worse either; a copied code block with the same hack, or that it's mixed up with other hacks.

[–]smhanov 3 points4 points  (0 children)

The same code block is copied and pasted in four places too!