Skip to content

Commit

Permalink
Use System.lineSeparator()
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-o committed May 26, 2022
1 parent b36d864 commit dbdae87
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -84,7 +83,7 @@ public abstract class AbstractReleaseTestCase
protected ProjectBuilder projectBuilder;

protected ArtifactRepository localRepository;

private ArtifactFactory artifactFactory;

protected ReleasePhase phase;
Expand All @@ -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( '\\', '/' );
Expand All @@ -113,7 +112,7 @@ protected List<MavenProject> createReactorProjects( String path, String subpath
{
return createReactorProjects( path, path, subpath );
}

protected ReleaseDescriptorBuilder createReleaseDescriptorBuilder( List<MavenProject> reactorProjects )
{
ReleaseDescriptorBuilder builder = new ReleaseDescriptorBuilder();
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit dbdae87

Please sign in to comment.