com.g2forge.alexandria.java.debug.HDebug Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ax-java Show documentation
Show all versions of ax-java Show documentation
Standard Java library and the basis of the ${alexandria.name} project.
package com.g2forge.alexandria.java.debug;
import com.g2forge.alexandria.java.marker.Helpers;
import lombok.experimental.UtilityClass;
@Helpers
@UtilityClass
public class HDebug {
protected static boolean isDebugEnabled;
static {
final String string = System.getProperty(HDebug.class.getName() + ".isDebugEnabled");
if (string == null) isDebugEnabled = false;
else isDebugEnabled = Boolean.valueOf(string);
}
public static boolean isDebugEnabled() {
return isDebugEnabled;
}
}