Skip to content

Commit 422f895

Browse files
authored
Prefer JDK join method (#1434)
1 parent 70f56ad commit 422f895

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PerformReleaseMojo.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import org.apache.maven.shared.release.ReleaseManager;
3434
import org.apache.maven.shared.release.ReleasePerformRequest;
3535
import org.apache.maven.shared.release.config.ReleaseDescriptorBuilder;
36-
import org.codehaus.plexus.util.StringUtils;
3736

3837
/**
3938
* Perform a release from SCM, either from a specified tag, or the tag representing the previous release in
@@ -122,7 +121,7 @@ public void execute() throws MojoExecutionException, MojoFailureException {
122121
// goals may be split into multiple lines in configuration.
123122
// Let's build a single line command
124123
if (goals != null) {
125-
goals = StringUtils.join(goals.split("\\s+"), " ");
124+
goals = String.join(" ", goals.split("\\s+"));
126125
}
127126

128127
try {

0 commit comments

Comments
 (0)