Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class AbstractArtifactResolutionException

private final String path;

static final String LS = System.getProperty( "line.separator" );
static final String LS = System.lineSeparator();

@SuppressWarnings( "checkstyle:parameternumber" )
protected AbstractArtifactResolutionException( String message,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class ModelValidationResult
{

/** */
private static final String NEWLINE = System.getProperty( "line.separator" );
private static final String NEWLINE = System.lineSeparator();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be renamed to LS.


/** */
private List<String> messages;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
public class ArtifactResolutionExceptionTest
extends TestCase
{
private static final String LS = System.getProperty( "line.separator" );
private static final String LS = System.lineSeparator();

public void testMissingArtifactMessageFormat()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
public class PluginParameterExpressionEvaluatorTest
extends AbstractCoreMavenComponentTestCase
{
private static final String FS = System.getProperty( "file.separator" );
private static final String FS = File.separator;

private RepositorySystem factory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

public class DefaultToolchainsBuilderTest
{
private static final String LS = System.getProperty( "line.separator" );
private static final String LS = System.lineSeparator();

@Spy
private DefaultToolchainsReader toolchainsReader;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

public class ToolchainsBuildingExceptionTest
{
private static final String LS = System.getProperty( "line.separator" );
private static final String LS = System.lineSeparator();

@Test
public void testNoProblems()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public final class CLIReportingUtils

public static String showVersion()
{
final String ls = System.getProperty( "line.separator" );
final String ls = System.lineSeparator();
Properties properties = getBuildProperties();
StringBuilder version = new StringBuilder( 256 );
version.append( buffer().strong( createMavenVersionString( properties ) ) ).append( ls );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void activate()
logger.warn( "The SLF4J binding actually used is not supported by Maven: {}", slf4jBinding );
logger.warn( "Maven supported bindings are:" );

String ls = System.getProperty( "line.separator" );
String ls = System.lineSeparator();

for ( Map.Entry<URL, Set<Object>> entry : supported.entrySet() )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
public class CLIManagerDocumentationTest
extends TestCase
{
private final static String LS = System.getProperty( "line.separator" );
private final static String LS = System.lineSeparator();

private static class OptionComparator
implements Comparator<Option>
Expand Down