jMobileCore toolkit

com.jmobilecore.support
Class Debug

java.lang.Object
  extended by com.jmobilecore.support.Debug

public class Debug
extends java.lang.Object

Provides functionality for debugging. The final static boolean ON variable should be used to wrap any debug statements, as in if ( Debug.ON ) { do something } . Then, if the code is recompiled with ON set to false, any code wrapped as shown above will not be included in the compiled class file, because the compiler recognizes the the 'do something' is unreachable and will eliminate it. It will reduce the size of your class files.

Author:
Greg Gridin

Field Summary
static boolean ON
          Indicated whether logging functionality is enabled.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ON

public static final boolean ON
Indicated whether logging functionality is enabled.

See Also:
Constant Field Values

jMobileCore toolkit