diff --git a/core/src/main/java/hudson/Util.java b/core/src/main/java/hudson/Util.java index 2aeeb74bd57f23bef2379da30962c151369b4031..1492f364514636fb8a36dfe869b11d69312da12e 100644 --- a/core/src/main/java/hudson/Util.java +++ b/core/src/main/java/hudson/Util.java @@ -1569,7 +1569,7 @@ public class Util { * give up, thus improving build reliability. */ @Restricted(value = NoExternalUse.class) - static int DELETION_MAX = Math.max(1, SystemProperties.getInteger(Util.class.getName() + ".maxFileDeletionRetries", 3).intValue()); + static int DELETION_MAX = Math.max(1, SystemProperties.getInteger(Util.class.getName() + ".maxFileDeletionRetries", 3)); /** * The time (in milliseconds) that we will wait between attempts to @@ -1581,7 +1581,7 @@ public class Util { * between attempts. */ @Restricted(value = NoExternalUse.class) - static int WAIT_BETWEEN_DELETION_RETRIES = SystemProperties.getInteger(Util.class.getName() + ".deletionRetryWait", 100).intValue(); + static int WAIT_BETWEEN_DELETION_RETRIES = SystemProperties.getInteger(Util.class.getName() + ".deletionRetryWait", 100); /** * If this flag is set to true then we will request a garbage collection diff --git a/core/src/main/java/hudson/model/Job.java b/core/src/main/java/hudson/model/Job.java index 4b149034bd825bf448e8b6aad5416a8afd748b12..f8510221c60af62c75598da8f8cd0ce4ab83b112 100644 --- a/core/src/main/java/hudson/model/Job.java +++ b/core/src/main/java/hudson/model/Job.java @@ -1214,7 +1214,7 @@ public abstract class Job, RunT extends Run, Q } Boolean shouldKeepFlag = SystemProperties.optBoolean(KEEP_UNDEFINED_PARAMETERS_SYSTEM_PROPERTY_NAME); - if (shouldKeepFlag != null && shouldKeepFlag.booleanValue()) { + if (shouldKeepFlag != null && shouldKeepFlag) { return parameters; }