Skip to content

Commit b4dd65a

Browse files
authored
Merge pull request #102 from Marcono1234/improve-tests
Improve tests
2 parents 4835217 + 26d7fbc commit b4dd65a

File tree

4 files changed

+172
-161
lines changed

4 files changed

+172
-161
lines changed

pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@
131131
<groupId>org.apache.maven.plugins</groupId>
132132
<artifactId>maven-compiler-plugin</artifactId>
133133
<configuration>
134-
<source>${java.target}</source>
135-
<target>${java.target}</target>
134+
<release>${java.target}</release>
136135
<compilerArgument>-Xlint:deprecation</compilerArgument>
137136
</configuration>
138137
</plugin>

src/main/java/pl/project13/core/util/PropertyManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ protected static void dumpProperties(OutputStream outputStream, OrderedPropertie
6060
// use the OrderedProperties.store(Writer, ...)-method to avoid illegal reflective access warning
6161
// see: https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/523
6262
outputWriter.write("#Generated by Git-Commit-Id-Plugin");
63-
outputWriter.write(System.getProperty("line.separator"));
63+
outputWriter.write(System.lineSeparator());
6464
for (Map.Entry<String, String> e : sortedLocalProperties.entrySet()) {
6565
String key = saveConvert(e.getKey(), true, escapeUnicode);
6666
String val = saveConvert(e.getValue(), false, escapeUnicode);
6767
outputWriter.write(key + "=" + val);
68-
outputWriter.write(System.getProperty("line.separator"));
68+
outputWriter.write(System.lineSeparator());
6969
}
7070
}
7171
}

0 commit comments

Comments
 (0)