未验证 提交 a5c9d7fc 编写于 作者: O Oleg Nenashev 提交者: GitHub

Merge pull request #3907 from jsoref/auto-unbox

Rely on auto unboxing
......@@ -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
......
......@@ -1214,7 +1214,7 @@ public abstract class Job<JobT extends Job<JobT, RunT>, RunT extends Run<JobT, R
if (cachedBuildHealthReportsBuildNumber != null
&& cachedBuildHealthReports != null
&& lastBuild != null
&& cachedBuildHealthReportsBuildNumber.intValue() == lastBuild
&& cachedBuildHealthReportsBuildNumber == lastBuild
.getNumber()) {
reports.addAll(cachedBuildHealthReports);
} else if (lastBuild != null) {
......
......@@ -320,7 +320,7 @@ public class ParametersAction implements RunAction2, Iterable<ParameterValue>, Q
}
Boolean shouldKeepFlag = SystemProperties.optBoolean(KEEP_UNDEFINED_PARAMETERS_SYSTEM_PROPERTY_NAME);
if (shouldKeepFlag != null && shouldKeepFlag.booleanValue()) {
if (shouldKeepFlag != null && shouldKeepFlag) {
return parameters;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册