Switching to SystemProperties.
@@ -53,6 +53,7 @@ import com.jcraft.jzlib.GZIPInputStream;
import com.jcraft.jzlib.GZIPOutputStream;
import hudson.remoting.ClassFilter;
import jenkins.security.HMACConfidentialKey;
+import jenkins.util.SystemProperties;
/**
* Data that hangs off from a console output.
@@ -128,7 +129,7 @@ public abstract class ConsoleNote<T> implements Serializable, Describable<Consol
* Disables checking of {@link #MAC} so do not set this flag unless you completely trust all users capable of affecting build output,
* which in practice means that all SCM committers as well as all Jenkins users with any non-read-only access are consider administrators.
*/
- static /* nonfinal for tests & script console */ boolean INSECURE = Boolean.getBoolean(ConsoleNote.class.getName() + ".INSECURE"); // TODO 2.x use SystemProperties
+ static /* nonfinal for tests & script console */ boolean INSECURE = SystemProperties.getBoolean(ConsoleNote.class.getName() + ".INSECURE");
/**
* When the line of a console output that this annotation is attached is read by someone,
