@Test public void testApplyTwiceDoesNotMatter() { assertThat(AsmUtil.toClassName("java.util.List", true), is("java.util.List")); assertThat(AsmUtil.toClassName("java.util.List$Entry", true), is("java.util.List")); assertThat(AsmUtil.toClassName("java.util.List$Entry", false), is("java.util.List$Entry")); }
public static String toClassName(String className, boolean collapseInnerClasses) { if (className == null) { return null; } if (collapseInnerClasses && className.indexOf('$') >= 0) { return toClassName(className.substring(0, className.indexOf('$'))); } return toClassName(className); }
AsmUtil { public static String toClassName(String className, boolean collapseInnerClasses) { if (className == null) { return null; } if (collapseInnerClasses && className.indexOf('$') >= 0) { return toClassName(className.substring(0, className.indexOf('$'))); } return toClassName(className); } }
AsmUtil { public static String toClassName(String className, boolean collapseInnerClasses) { if (className == null) { return null; } if (collapseInnerClasses && className.indexOf('$') >= 0) { return toClassName(className.substring(0, className.indexOf('$'))); } return toClassName(className); } private  AsmUtil(); }
AsmUtil { public static String toClassName(String className, boolean collapseInnerClasses) { if (className == null) { return null; } if (collapseInnerClasses && className.indexOf('$') >= 0) { return toClassName(className.substring(0, className.indexOf('$'))); } return toClassName(className); } private  AsmUtil(); static List<String> getParameterTypeNames(String desc, boolean collapseInnerClasses); static String toClassName(String className, boolean collapseInnerClasses); }
AsmUtil { public static String toClassName(String className, boolean collapseInnerClasses) { if (className == null) { return null; } if (collapseInnerClasses && className.indexOf('$') >= 0) { return toClassName(className.substring(0, className.indexOf('$'))); } return toClassName(className); } private  AsmUtil(); static List<String> getParameterTypeNames(String desc, boolean collapseInnerClasses); static String toClassName(String className, boolean collapseInnerClasses);  }