Skip to content

Commit

Permalink
*: remove compiled class writing to file
Browse files Browse the repository at this point in the history
  • Loading branch information
yusshu committed Dec 26, 2023
1 parent 5153650 commit 0550b8e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/team/unnamed/mocha/runtime/MolangCompiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.Parameter;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -264,7 +262,7 @@ public MolangCompiler(final @NotNull ClassLoader classLoader, final @NotNull Glo
}

// write class
Files.write(Paths.get("test.class"), scriptCtClass.toBytecode());
// Files.write(Paths.get("test.class"), scriptCtClass.toBytecode());
final Class<?> compiledClass = classPool.toClass(scriptCtClass, getClass(), classLoader, null);

// find the constructor with the requirements
Expand Down

0 comments on commit 0550b8e

Please sign in to comment.