debug.java
来自「j2me下的1套UI框架.包含j2me开发中会应用的各种低级组件」· Java 代码 · 共 34 行
JAVA
34 行
package com.jmobilecore.support;
/**
* Provides functionality for debugging.
*
* The <code>final static boolean ON</code> variable
* should be used to wrap any debug statements, as in
* <code>if ( Debug.ON ) { do something } </code>.
* Then, if the code is recompiled with ON set to <code>false</code>,
* 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
*/
public class Debug {
/**
* Indicated whether logging functionality is enabled.
*/
public final static boolean ON = false;
/**
* Protectes Dubug class of instantiation
*/
private Debug() {
} // constructor
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?