Skip to content

Commit

Permalink
Don't enable form element path in unit tests by default (jenkinsci#6004)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored Dec 4, 2021
1 parent de1a7e7 commit 14a763b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import hudson.Extension;
import hudson.Main;
import hudson.model.PageDecorator;
import jenkins.util.SystemProperties;

@Extension
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() {
Expand Down

0 comments on commit 14a763b

Please sign in to comment.