jMobileCore toolkit
Class Debug

  extended by

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.

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


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

See Also:
Constant Field Values

jMobileCore toolkit