[josm-dev] r4188 - removal of debug code

Stefan Breunig stefan at mathphys.fsk.uni-heidelberg.de
Sun Aug 21 08:31:13 BST 2011


> I'd have a really hard time believing that the JVM can't optimize stuff
> like this:

and right you are;
http://stackoverflow.com/questions/1813853/ifdef-ifndef-in-java/1813871#1813871

It's compiled out, even if the main function isn't static. If you are 
in doubt, just javap -c at the class file and search for a debug string 
with debug = false and with debug = true and see if it works for the 
class at hand.

--Stefan



More information about the josm-dev mailing list