Skip to content

Commit 01ae7be

Browse files
author
vsilaev
committed
Remove dependencies to API from tools (ant, maven, javaflow agent, cdi agent)
1 parent ab31e4b commit 01ae7be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net.tascalate.javaflow.tools.cdi-javaagent/src/main/java/org/apache/commons/javaflow/instrumentation/cdi/AroundWeldProxyInvocationAdvice.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ protected AroundWeldProxyInvocationAdvice(int api, MethodVisitor mv, int acc, St
2727
@Override
2828
protected void loadProxiedInstance() {
2929
loadThis();
30-
invokeVirtual(Type.getType(className), Method.getMethod("Object getTargetInstance()"));
30+
invokeVirtual(Type.getType(className), GET_TARGET_INSTANCE);
3131
}
3232

33+
private static final Method GET_TARGET_INSTANCE = Method.getMethod("java.lang.Object getTargetInstance()");
3334
}

0 commit comments

Comments
 (0)