Skip to content

Commit 0663d8c

Browse files
author
Dave Wichers
committed
Merge remote-tracking branch 'origin/main' into generalizeScoring and
fix minor merge conflict.
2 parents 6597221 + 6de5547 commit 0663d8c

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

plugin/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
<dependency>
102102
<groupId>org.apache.maven</groupId>
103103
<artifactId>maven-plugin-api</artifactId>
104-
<version>3.9.9</version>
104+
<version>3.9.10</version>
105105
<scope>provided</scope>
106106
</dependency>
107107

@@ -195,7 +195,7 @@
195195
<version.fasterxml.jackson>2.19.0</version.fasterxml.jackson>
196196
<!-- 3.0.3+ version of eclipse.persistence requires jakarta.xml.bind instead of jaxb -->
197197
<version.eclipse.persistence>2.7.15</version.eclipse.persistence>
198-
<version.junit.jupiter>5.12.2</version.junit.jupiter>
198+
<version.junit.jupiter>5.13.1</version.junit.jupiter>
199199
</properties>
200200

201201
</project>

plugin/src/main/java/org/owasp/benchmarkutils/score/Configuration.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import java.util.Map;
2626
import org.owasp.benchmarkutils.helpers.Categories;
2727
import org.owasp.benchmarkutils.helpers.CategoryGroups;
28+
import org.yaml.snakeyaml.LoaderOptions;
2829
import org.yaml.snakeyaml.Yaml;
2930

3031
/**
@@ -93,7 +94,16 @@ public class Configuration {
9394

9495
public final Report report;
9596

96-
private static final Yaml yaml = new Yaml();
97+
private static final Yaml yaml = new Yaml(defaultLoaderOptions());
98+
99+
private static LoaderOptions defaultLoaderOptions() {
100+
LoaderOptions loaderOptions = new LoaderOptions();
101+
102+
loaderOptions.setAllowDuplicateKeys(true);
103+
loaderOptions.setWarnOnDuplicateKeys(false);
104+
105+
return loaderOptions;
106+
}
97107

98108
public static Configuration fromDefaultConfig() {
99109
return fromInputStream(resourceAsStream(DEFAULT_CONFIG), DEFAULT_SUCCESS_MESSAGE);

plugin/src/test/java/org/owasp/benchmarkutils/score/BenchmarkScoreTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
public class BenchmarkScoreTest {
3030

31-
private static final String SEP = System.getProperty("line.separator");
31+
private static final String SEP = System.lineSeparator();
3232
private final ByteArrayOutputStream outContent = new ByteArrayOutputStream();
3333
private final PrintStream originalOut = System.out;
3434

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
<plugin>
9494
<groupId>org.apache.maven.plugins</groupId>
9595
<artifactId>maven-clean-plugin</artifactId>
96-
<version>3.4.1</version>
96+
<version>3.5.0</version>
9797
</plugin>
9898

9999
<plugin>

0 commit comments

Comments
 (0)