diff --git a/lib/rust/parser/generate-java/java/org/enso/syntax2/Parser.java b/lib/rust/parser/generate-java/java/org/enso/syntax2/Parser.java index 4d78e59b529b..465e2afbf72d 100644 --- a/lib/rust/parser/generate-java/java/org/enso/syntax2/Parser.java +++ b/lib/rust/parser/generate-java/java/org/enso/syntax2/Parser.java @@ -7,7 +7,7 @@ import java.nio.charset.StandardCharsets; public final class Parser implements AutoCloseable { - private static void initializeLibraries() { + static { String os = System.getProperty("os.name"); String name; if (os.startsWith("Mac")) { @@ -87,7 +87,6 @@ private Parser(long stateIn) { static native long getUuidLow(long metadata, long codeOffset, long codeLength); public static Parser create() { - initializeLibraries(); var state = allocState(); return new Parser(state); }