String getTargetInternalName ( String sourceInternalName , String targetPackage ) { StringBuilder targetInternalName = new StringBuilder ( ) ; targetInternalName . append ( targetPackage . replaceAll ( "\\." , "/" ) ) ; int lastSlashIndex = sourceInternalName . lastIndexOf ( ' ' ) ; targetInternalName . append ( sourceInternalName . substring ( lastSlashIndex ) ) ; return targetInternalName . toString ( ) ; }
Get the class internal name that should be used where moving the internal class across packages .