public static String transformMethodSignature ( String signature ) { StringBuilder buf = new StringBuilder ( ) ; buf . append ( ' ' ) ; SignatureParser parser = new SignatureParser ( signature ) ; for ( Iterator < String > i = parser . parameterSignatureIterator ( ) ; i . hasNext ( ) ; ) { String param = i . next ( ) ; param = transformSignature ( param ) ; buf . append ( param ) ; } buf . append ( ' ' ) ; return buf . toString ( ) ; }
Transform a method signature to allow it to be compared even if any of its parameter types are moved to another package .