Don't enable form element path in unit tests by default
@@ -2,7 +2,6 @@ package jenkins.formelementpath;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import hudson.Extension;
-import hudson.Main;
import hudson.model.PageDecorator;
import jenkins.util.SystemProperties;
@@ -10,7 +9,7 @@ import jenkins.util.SystemProperties;
public class FormElementPathPageDecorator extends PageDecorator {
@SuppressFBWarnings("MS_SHOULD_BE_FINAL")
- private static /*almost final */ boolean ENABLED = Main.isUnitTest ||
+ private static /*almost final */ boolean ENABLED =
SystemProperties.getBoolean(FormElementPathPageDecorator.class.getName() + ".enabled");
public boolean isEnabled() {
