File tree Expand file tree Collapse file tree 4 files changed +15
-5
lines changed
main/java/org/owasp/benchmarkutils/score
test/java/org/owasp/benchmarkutils/score Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 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
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 >
Original file line number Diff line number Diff line change 2525import java .util .Map ;
2626import org .owasp .benchmarkutils .helpers .Categories ;
2727import org .owasp .benchmarkutils .helpers .CategoryGroups ;
28+ import org .yaml .snakeyaml .LoaderOptions ;
2829import 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 );
Original file line number Diff line number Diff line change 2828
2929public 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
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments