Add UNSAFE util.

master
IzzelAliz 2019-12-04 16:18:46 +08:00
parent b532366a6a
commit 1bb3743b47
1 changed files with 0 additions and 6 deletions

View File

@ -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);
}