Skip to content

Commit 02d5a0c

Browse files
authored
Replace Apache Commons Lang 2 with Java APIs due to removal from core and security issue (#144)
1 parent e72cac8 commit 02d5a0c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.jenkins-ci.plugins</groupId>
77
<artifactId>plugin</artifactId>
8-
<version>5.2102.v5f5fe09fccf1</version>
8+
<version>6.2116.v7501b_67dc517</version>
99
<relativePath />
1010
</parent>
1111

@@ -27,6 +27,7 @@
2727
<spotbugs.effort>Max</spotbugs.effort>
2828
<spotbugs.threshold>Low</spotbugs.threshold>
2929
<ban-junit4-imports.skip>false</ban-junit4-imports.skip>
30+
<ban-commons-lang-2.skip>false</ban-commons-lang-2.skip>
3031
</properties>
3132

3233

src/main/java/jenkins/scm/cvs/QuietPeriodCompleted.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import hudson.model.Queue;
77
import hudson.model.queue.QueueListener;
88
import hudson.triggers.SCMTrigger;
9-
import org.apache.commons.lang.StringUtils;
9+
1010

1111
import java.util.Collections;
1212
import java.util.Date;
@@ -76,9 +76,9 @@ public void onLeaveWaiting(Queue.WaitingItem wi) {
7676
remoteHosts = Collections.emptySet();
7777
} else {
7878
remoteHosts = new HashSet<String>();
79-
for (String host: StringUtils.split(REMOTE_HOSTS, ", ")) {
79+
for (String host: REMOTE_HOSTS.split(", ")) {
8080
final String h = host.trim();
81-
if (!StringUtils.isBlank(h))
81+
if (!h.isBlank())
8282
remoteHosts.add(h);
8383
}
8484
}

0 commit comments

Comments
 (0)