public boolean equivalent ( final String method1 , final ClassReader class1 , final String method2 , final ClassReader class2 ) { return getMethodBytecode ( method1 , class1 ) . equals ( getMethodBytecode ( method2 , class2 ) ) ; }
This actually does the comparing . Class1 and Class2 are class reader instances to the respective classes . method1 and method2 are looked up on the respective classes and their contents compared .