From 21fb477ee1012b20d16ce819a799c2b7ff83b45a Mon Sep 17 00:00:00 2001 From: Victorious3 Date: Tue, 31 Jan 2023 14:25:37 +0100 Subject: [PATCH] These are the defaults, actually --- src/test/java/targetast/TestCodegen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/targetast/TestCodegen.java b/src/test/java/targetast/TestCodegen.java index acfa46d9..39973a90 100644 --- a/src/test/java/targetast/TestCodegen.java +++ b/src/test/java/targetast/TestCodegen.java @@ -31,7 +31,7 @@ public class TestCodegen { private static void writeClassFile(String name, byte[] code) throws IOException { var path = Path.of(System.getProperty("user.dir"), "src/test/resources/target/"); Files.createDirectories(path); - Files.write(path.resolve(name + ".class"), code, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING); + Files.write(path.resolve(name + ".class"), code); } public static Class generateClass(TargetClass clazz, IByteArrayClassLoader classLoader) throws IOException {