Skip to content

Commit

Permalink
Fix BX_UNBOXING_IMMEDIATELY_REBOXED in numberOfDays
Browse files Browse the repository at this point in the history
  • Loading branch information
William Hetherington committed Aug 4, 2019
1 parent 221ff63 commit 5df091f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public List<ListItem> getData() {
@Override
public void setUp(SimpleBuildWrapper.Context context, Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) throws IOException, InterruptedException {
// PreBuild
final Integer numberOfDays = ((getDescriptor().getNumberOfDays() == null) ? 30
final Integer numberOfDays = ((getDescriptor().getNumberOfDays() == null) ? Integer.valueOf(30)
: getDescriptor().getNumberOfDays());
String passedBuildNumber = build.getEnvironment(listener).expand(buildNumber);
String passedEnvName = build.getEnvironment(listener).expand(nameOfEnv);
Expand Down

0 comments on commit 5df091f

Please sign in to comment.