Due to the debugging reason, most parts of the code in my application have this repeating piece of code:
public static final boolean DEBUG = true;
if (Utility.DEBUG)
Log.d("TIMER", );
Now, if the booleans refer to false, it becomes dead code. My question is, will the Android compiler do basic optimizations in this case, such as persistent folding and remote code?
If the answer is no, what is the best way to clear debug logs in the free phase?
source
share