Skip to content
Merged
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 @@ -22,6 +22,7 @@
import java.io.InputStream;
import java.io.SequenceInputStream;
import java.util.Map;
import org.yaml.snakeyaml.LoaderOptions;
import org.yaml.snakeyaml.Yaml;

/**
Expand Down Expand Up @@ -76,7 +77,16 @@ public class Configuration {

public final Report report;

private static final Yaml yaml = new Yaml();
private static final Yaml yaml = new Yaml(defaultLoaderOptions());

private static LoaderOptions defaultLoaderOptions() {
LoaderOptions loaderOptions = new LoaderOptions();

loaderOptions.setAllowDuplicateKeys(true);
loaderOptions.setWarnOnDuplicateKeys(false);

return loaderOptions;
}

public static Configuration fromDefaultConfig() {
return fromInputStream(resourceAsStream(DEFAULT_CONFIG), DEFAULT_SUCCESS_MESSAGE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

public class BenchmarkScoreTest {

private static final String SEP = System.getProperty("line.separator");
private static final String SEP = System.lineSeparator();
private final ByteArrayOutputStream outContent = new ByteArrayOutputStream();
private final PrintStream originalOut = System.out;

Expand Down