Skip to content

AbstractHelpMojo.LS uses System.getProperty instead of System.lineSeparator() #391

Description

@elharo

In src/main/java/org/apache/maven/plugins/help/AbstractHelpMojo.java:55:

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

Should use System.lineSeparator() (Java 7+), which falls back to "\n" if the property is missing. DescribeMojoTest inconsistently uses both System.getProperty("line.separator") (line 88) and System.lineSeparator() (line 110).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions