Skip to content

Commit f7c3a56

Browse files
committed
chore: remove last org.apache.commons.lang.* import in project (everywhere else, we use org.apache.commons.lang3.*)
1 parent 8609b8c commit f7c3a56

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/io/jenkins/plugins/gitlabbranchsource/helpers/GitLabHelper.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import static com.cloudbees.plugins.credentials.CredentialsMatchers.withId;
44
import static com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials;
55
import static com.cloudbees.plugins.credentials.domains.URIRequirementBuilder.fromUri;
6-
import static org.apache.commons.lang.StringUtils.defaultIfBlank;
76

87
import com.cloudbees.plugins.credentials.CredentialsMatchers;
98
import com.cloudbees.plugins.credentials.common.StandardCredentials;
@@ -25,7 +24,7 @@
2524
import java.util.Map;
2625
import java.util.regex.Pattern;
2726
import jenkins.model.Jenkins;
28-
import org.apache.commons.lang.StringUtils;
27+
import org.apache.commons.lang3.StringUtils;
2928
import org.eclipse.jgit.annotations.NonNull;
3029
import org.gitlab4j.api.GitLabApi;
3130
import org.gitlab4j.api.ProxyClientConfig;
@@ -175,7 +174,7 @@ public static StandardCredentials getCredential(String credentialsId, String ser
175174
StandardCredentials.class,
176175
(ItemGroup) context,
177176
ACL.SYSTEM,
178-
fromUri(defaultIfBlank(
177+
fromUri(StringUtils.defaultIfBlank(
179178
getServerUrlFromName(serverName), GitLabServer.GITLAB_SERVER_URL))
180179
.build()),
181180
withId(credentialsId));
@@ -185,7 +184,7 @@ public static StandardCredentials getCredential(String credentialsId, String ser
185184
StandardCredentials.class,
186185
(Item) context,
187186
ACL.SYSTEM,
188-
fromUri(defaultIfBlank(
187+
fromUri(StringUtils.defaultIfBlank(
189188
getServerUrlFromName(serverName), GitLabServer.GITLAB_SERVER_URL))
190189
.build()),
191190
withId(credentialsId));

0 commit comments

Comments
 (0)