1.4下有变通的办法。
自己写个类如下:
public class Tracer
{
private static boolean isDebugTime=false;
/**
* @return whether it is debugtime
*/
public static boolean isDebugTime()
{
return isDebugTime;
}
/**
* @param b whether it is debugtime
*/
public static void setDebugTime(boolean b)
{
isDebugTime = b;
}
/**
* this function prints the debug info
* @param info debug info
*/
public static void out(String info)
{
System.out.println(info);
}
}
调试时设为debuTime
发布时去掉即可。