Skip to content

Remove commons-lang2 usages - #348

Open
gbhat618 wants to merge 3 commits into
jenkinsci:masterfrom
gbhat618:feature/remove-commons-lang2
Open

Remove commons-lang2 usages#348
gbhat618 wants to merge 3 commits into
jenkinsci:masterfrom
gbhat618:feature/remove-commons-lang2

Conversation

@gbhat618

@gbhat618 gbhat618 commented Jul 23, 2026

Copy link
Copy Markdown

Preparing for commons-lang2 removal jenkinsci/jenkins#26105, usages are simple here so use JDK apis directly.

This PR builds on top of #344

Testing

mvn compile after ban commons-lang2.

Comment on lines -53 to -62
import org.apache.commons.lang.StringUtils;
import org.apache.http.concurrent.BasicFuture;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.concurrent.ExecutionException;

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dead imports

@gbhat618
gbhat618 marked this pull request as ready for review July 23, 2026 07:50
@gbhat618

Copy link
Copy Markdown
Author

/label developer to get a release to test and update in jenkinsci/bom#6234

Comment thread src/main/java/de/taimos/pipeline/aws/cloudformation/CloudFormationStack.java Outdated
CreateStackRequest req = new CreateStackRequest();
req.withStackName(this.stack).withCapabilities(Capability.CAPABILITY_IAM, Capability.CAPABILITY_NAMED_IAM, Capability.CAPABILITY_AUTO_EXPAND).withEnableTerminationProtection(enableTerminationProtection);
req.withTemplateBody(templateBody).withTemplateURL(templateUrl).withParameters(params).withTags(tags).withNotificationARNs(notificationARNs)
.withTimeoutInMinutes(pollConfiguration.getTimeout() == null ? null : (int) pollConfiguration.getTimeout().toMinutes())

@gbhat618 gbhat618 Jul 27, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pollConfiguration.getTimeout() is @NonNull no need of null check

@gbhat618
gbhat618 requested a review from jtnord July 27, 2026 06:53
@gbhat618

Copy link
Copy Markdown
Author

Hi @hoegertn can you help review.
We will need to add label developer and then also need a release of it.

Once the jenkins-core drops commons-lang2 there will be errors here, so preparing for it.

@timja
timja requested a review from a team August 4, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants