Fix invokeOriginalMethod
This commit is contained in:
parent
b27398fbe0
commit
727f9ba7c3
|
|
@ -18,8 +18,8 @@ public class LspHooker {
|
||||||
this.backup = backup;
|
this.backup = backup;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Method getBackup() {
|
public Object invokeOriginalMethod(Object thisObject, Object[] args) throws InvocationTargetException, IllegalAccessException {
|
||||||
return backup;
|
return backup.invoke(thisObject, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings({"unused", "RedundantSuppression"})
|
@SuppressWarnings({"unused", "RedundantSuppression"})
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ public final class DynamicBridge {
|
||||||
if (args == null) {
|
if (args == null) {
|
||||||
args = new Object[0];
|
args = new Object[0];
|
||||||
}
|
}
|
||||||
return hooker.getBackup().invoke(thisObject, args);
|
return hooker.invokeOriginalMethod(thisObject, args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue