Skip to content

Commit

Permalink
[JENKINS-50793] Remove implicit dependency on Apache commons lang 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
tneer committed Apr 13, 2018
1 parent ea087d5 commit 863cf16
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -3,7 +3,6 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import org.apache.commons.lang3.StringUtils;
import org.codehaus.plexus.util.xml.Xpp3Dom;
import org.eclipse.aether.RepositoryEvent;
import org.jenkinsci.plugins.pipeline.maven.eventspy.reporter.MavenEventReporter;
Expand Down Expand Up @@ -53,7 +52,8 @@ protected Xpp3Dom newElement(String name, @Nullable org.eclipse.aether.repositor

element.setAttribute("id", repository.getId());
element.setAttribute("layout", repository.getContentType());
element.setAttribute("url", StringUtils.substringBetween(repository.toString(), "(", ","));
String repoString = repository.toString();
element.setAttribute("url", repoString.substring(repoString.indexOf("(") + 1, repoString.indexOf(",")));

return element;
}
Expand Down

0 comments on commit 863cf16

Please sign in to comment.