Add UNSAFE util.
parent
b532366a6a
commit
1bb3743b47
|
@ -1,7 +1,6 @@
|
|||
package io.izzel.taboolib.util;
|
||||
|
||||
import sun.misc.Unsafe;
|
||||
import sun.reflect.CallerSensitive;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.security.ProtectionDomain;
|
||||
|
@ -20,11 +19,6 @@ public class UNSAFE {
|
|||
}
|
||||
}
|
||||
|
||||
@CallerSensitive
|
||||
public static Unsafe getUnsafe() {
|
||||
return Unsafe.getUnsafe();
|
||||
}
|
||||
|
||||
public static int getInt(Object o, long offset) {
|
||||
return unsafe.getInt(o, offset);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue