Commit 4659bc6e authored by swift_gan's avatar swift_gan

remove useless logic

parent a94258bc
......@@ -68,14 +68,9 @@ public class SandHook {
private static void resolveStaticMethod(Member method) {
//ignore result, just call to trigger resolve
try {
if (method instanceof Method) {
if (Modifier.isStatic(method.getModifiers())) {
((Method) method).setAccessible(true);
((Method) method).invoke(new Object());
}
} else if (method instanceof Constructor){
((Constructor)method).setAccessible(true);
((Constructor)method).newInstance(null);
if (method instanceof Method && Modifier.isStatic(method.getModifiers())) {
((Method) method).setAccessible(true);
((Method) method).invoke(new Object());
}
} catch (Exception e) {
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment