Boolean boxing in Java 1.3 -
for reason have maintain java 1.3 project. use boolean seems give them default values have box them this
boolean disableallthethings = new boolean(false);
is there way have automatically constant somewhere such
boolean disableallthethings = false_constant;
it not important feels weird box booleans.
there no boxing in example, create unnecessary object. how using constant provided boolean class (link 1.3 api) instead:
boolean disableallthings = boolean.false;
Comments
Post a Comment