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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -