MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / getUnsafe

Method getUnsafe

src/main/java/fieldbox/io/EDN.java:33–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 private final Protocol<Printer.Fn<?>> thePrinter;
32
33 private static Unsafe getUnsafe() {
34 try {
35
36 Field singleoneInstanceField = Unsafe.class.getDeclaredField("theUnsafe");
37 singleoneInstanceField.setAccessible(true);
38 return (Unsafe) singleoneInstanceField.get(null);
39
40 } catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException | SecurityException e) {
41 e.printStackTrace();
42 }
43 return null;
44 }
45
46
47 private final Parser.Config.Builder builder;

Callers 2

Calls 1

getMethod · 0.65

Tested by

no test coverage detected