From e31c5b4e5a37ae8526287fcda28db88c6f6d4d0c Mon Sep 17 00:00:00 2001 From: Martin Wittlinger Date: Sat, 29 Oct 2022 17:55:06 +0200 Subject: [PATCH] fix: ignore duplicated classes --- .../keksdose/spoon/code_solver/printing/EnvironmentOptions.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code-transformation/src/main/java/xyz/keksdose/spoon/code_solver/printing/EnvironmentOptions.java b/code-transformation/src/main/java/xyz/keksdose/spoon/code_solver/printing/EnvironmentOptions.java index 9d5598a4e..775e602af 100644 --- a/code-transformation/src/main/java/xyz/keksdose/spoon/code_solver/printing/EnvironmentOptions.java +++ b/code-transformation/src/main/java/xyz/keksdose/spoon/code_solver/printing/EnvironmentOptions.java @@ -12,6 +12,8 @@ private EnvironmentOptions() { public static Environment setEnvironmentOptions(Launcher launcher) { Environment environment = launcher.getEnvironment(); + environment.setIgnoreDuplicateDeclarations(true); + environment.setIgnoreSyntaxErrors(true); environment.setNoClasspath(true); environment.setComplianceLevel(17); environment.setPreserveLineNumbers(true);