@Test public void testGetJavaName_forGroupWithInnerPathList() { assertEquals("a.b.c.MyClass$a$b$c", NameUtil.getJavaName("a.b.c.MyClass", list("a", "b", "c")) ); assertEquals("MyClass$a$b$c", NameUtil.getJavaName("MyClass", list("a", "b", "c")) ); assertEquals("a.b.c.MyClass", NameUtil.getJavaName("a.b.c.MyClass", list()) ); assertEquals("a.b.c.MyClass", NameUtil.getJavaName("a.b.c.MyClass", (List) null) ); assertEquals("a.b.c.MyClass$$a$b$$c", NameUtil.getJavaName("a.b.c.MyClass", list("$a", "b", "$c")) ); }
public static String getJavaName(String classCanonName, String[] innerPath) { if (innerPath != null && innerPath.length > 0) { return classCanonName + "$" + String.join("$", innerPath); } else { return classCanonName; } }
NameUtil { public static String getJavaName(String classCanonName, String[] innerPath) { if (innerPath != null && innerPath.length > 0) { return classCanonName + "$" + String.join("$", innerPath); } else { return classCanonName; } } }
NameUtil { public static String getJavaName(String classCanonName, String[] innerPath) { if (innerPath != null && innerPath.length > 0) { return classCanonName + "$" + String.join("$", innerPath); } else { return classCanonName; } }  }
NameUtil { public static String getJavaName(String classCanonName, String[] innerPath) { if (innerPath != null && innerPath.length > 0) { return classCanonName + "$" + String.join("$", innerPath); } else { return classCanonName; } }  static String getAndHowName(String classCanonName, String propName, List<String> innerPath); static String getAndHowName(String classCanonName, String propName, String... innerPath); static String getJavaName(String classCanonName, String[] innerPath); static String getJavaName(String classCanonName, List<String> innerPath); static String getAndHowName(String classCanonName, String[] innerPath); static String getAndHowName(Class<?> group); static String getJavaName(Class<?> group); static String getAndHowName(Class<?> group, Property<?> property); }
NameUtil { public static String getJavaName(String classCanonName, String[] innerPath) { if (innerPath != null && innerPath.length > 0) { return classCanonName + "$" + String.join("$", innerPath); } else { return classCanonName; } }  static String getAndHowName(String classCanonName, String propName, List<String> innerPath); static String getAndHowName(String classCanonName, String propName, String... innerPath); static String getJavaName(String classCanonName, String[] innerPath); static String getJavaName(String classCanonName, List<String> innerPath); static String getAndHowName(String classCanonName, String[] innerPath); static String getAndHowName(Class<?> group); static String getJavaName(Class<?> group); static String getAndHowName(Class<?> group, Property<?> property);  }