@Test public void testQualifiedTransformerName() throws Exception { assertThat(TransformerFactory.qualifiedTransformerName("Foo"), is(equalTo(getClass().getPackage().getName() + "." + "Foo" + Transformer.class.getSimpleName()))); assertThat(TransformerFactory.qualifiedTransformerName("FooTransformer"), is(equalTo(getClass().getPackage().getName() + "." + "Foo" + Transformer.class.getSimpleName()))); }
static String qualifiedTransformerName(String className) { String pkg = TransformerFactory.class.getPackage().getName(); String suffix = Transformer.class.getSimpleName(); StringBuilder sb = new StringBuilder(); sb.append(pkg); sb.append('.'); sb.append(className); if (!className.endsWith(suffix)) { sb.append(suffix); } return sb.toString(); }
TransformerFactory { static String qualifiedTransformerName(String className) { String pkg = TransformerFactory.class.getPackage().getName(); String suffix = Transformer.class.getSimpleName(); StringBuilder sb = new StringBuilder(); sb.append(pkg); sb.append('.'); sb.append(className); if (!className.endsWith(suffix)) { sb.append(suffix); } return sb.toString(); } }
TransformerFactory { static String qualifiedTransformerName(String className) { String pkg = TransformerFactory.class.getPackage().getName(); String suffix = Transformer.class.getSimpleName(); StringBuilder sb = new StringBuilder(); sb.append(pkg); sb.append('.'); sb.append(className); if (!className.endsWith(suffix)) { sb.append(suffix); } return sb.toString(); }  }
TransformerFactory { static String qualifiedTransformerName(String className) { String pkg = TransformerFactory.class.getPackage().getName(); String suffix = Transformer.class.getSimpleName(); StringBuilder sb = new StringBuilder(); sb.append(pkg); sb.append('.'); sb.append(className); if (!className.endsWith(suffix)) { sb.append(suffix); } return sb.toString(); }  static Transformer<?, ?> getTransformer(String code, 
      String moduleSpec, Properties properties); }
TransformerFactory { static String qualifiedTransformerName(String className) { String pkg = TransformerFactory.class.getPackage().getName(); String suffix = Transformer.class.getSimpleName(); StringBuilder sb = new StringBuilder(); sb.append(pkg); sb.append('.'); sb.append(className); if (!className.endsWith(suffix)) { sb.append(suffix); } return sb.toString(); }  static Transformer<?, ?> getTransformer(String code, 
      String moduleSpec, Properties properties);  }