@Test public void testCleanseClassName() { assertThat(cleanseClassName("WEB-INF.classes.com.foo.bar.MyClass")).isEqualTo("com.foo.bar.MyClass"); assertThat(cleanseClassName("com.foo.bar.MyClass")).isEqualTo("com.foo.bar.MyClass"); }
static String cleanseClassName(final String methodName) { if (methodName.startsWith("WEB-INF.classes.")) { return methodName.substring(16); } return methodName; }
FilteredMethodVisitor extends MethodVisitor { static String cleanseClassName(final String methodName) { if (methodName.startsWith("WEB-INF.classes.")) { return methodName.substring(16); } return methodName; } }
FilteredMethodVisitor extends MethodVisitor { static String cleanseClassName(final String methodName) { if (methodName.startsWith("WEB-INF.classes.")) { return methodName.substring(16); } return methodName; } FilteredMethodVisitor(final Method sourceMethod,
                                 final MethodVisitor methodVisitor,
                                 final Collector collect); }
FilteredMethodVisitor extends MethodVisitor { static String cleanseClassName(final String methodName) { if (methodName.startsWith("WEB-INF.classes.")) { return methodName.substring(16); } return methodName; } FilteredMethodVisitor(final Method sourceMethod,
                                 final MethodVisitor methodVisitor,
                                 final Collector collect); @Override void visitMethodInsn(final int opcode,
                                final String owner,
                                final String name,
                                final String descriptor,
                                final boolean isInterface); @Override void visitInvokeDynamicInsn(final String name,
                                       final String descriptor,
                                       final Handle handle,
                                       final Object... bootstrapMethodArguments); }
FilteredMethodVisitor extends MethodVisitor { static String cleanseClassName(final String methodName) { if (methodName.startsWith("WEB-INF.classes.")) { return methodName.substring(16); } return methodName; } FilteredMethodVisitor(final Method sourceMethod,
                                 final MethodVisitor methodVisitor,
                                 final Collector collect); @Override void visitMethodInsn(final int opcode,
                                final String owner,
                                final String name,
                                final String descriptor,
                                final boolean isInterface); @Override void visitInvokeDynamicInsn(final String name,
                                       final String descriptor,
                                       final Handle handle,
                                       final Object... bootstrapMethodArguments);  }