From dbdae87e98046ea5655e1d5b4630e369a5031821 Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Thu, 26 May 2022 19:11:53 +0200 Subject: [PATCH] Use System.lineSeparator() --- .../shared/release/phase/AbstractReleaseTestCase.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/AbstractReleaseTestCase.java b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/AbstractReleaseTestCase.java index be529f413..a4cca42e8 100644 --- a/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/AbstractReleaseTestCase.java +++ b/maven-release-manager/src/test/java/org/apache/maven/shared/release/phase/AbstractReleaseTestCase.java @@ -38,7 +38,6 @@ import java.util.Map; import java.util.Objects; -import org.apache.commons.lang.SystemUtils; import org.apache.maven.artifact.ArtifactUtils; import org.apache.maven.artifact.factory.ArtifactFactory; import org.apache.maven.artifact.repository.ArtifactRepository; @@ -84,7 +83,7 @@ public abstract class AbstractReleaseTestCase protected ProjectBuilder projectBuilder; protected ArtifactRepository localRepository; - + private ArtifactFactory artifactFactory; protected ReleasePhase phase; @@ -96,7 +95,7 @@ public void setUp() super.setUp(); projectBuilder = lookup( ProjectBuilder.class ); - artifactFactory = lookup( ArtifactFactory.class ); + artifactFactory = lookup( ArtifactFactory.class ); ArtifactRepositoryLayout layout = lookup( ArtifactRepositoryLayout.class, "default" ); String localRepoPath = getTestFile( "target/local-repository" ).getAbsolutePath().replace( '\\', '/' ); @@ -113,7 +112,7 @@ protected List createReactorProjects( String path, String subpath { return createReactorProjects( path, path, subpath ); } - + protected ReleaseDescriptorBuilder createReleaseDescriptorBuilder( List reactorProjects ) { ReleaseDescriptorBuilder builder = new ReleaseDescriptorBuilder(); @@ -305,7 +304,7 @@ protected void comparePomFiles( File expectedFile, File actualFile, boolean norm throws IOException { StringBuffer sb = new StringBuffer( "Check the transformed POM " + actualFile ); - sb.append( SystemUtils.LINE_SEPARATOR ); + sb.append( System.lineSeparator() ); final String remoteRepositoryURL = getRemoteRepositoryURL();