Ejemplo n.º 1
0
 @Override
 public String name(UnnamedType unnamedType) {
   String baseName = baseNameResolver.resolve(unnamedType);
   if (baseName.startsWith(JAVA_PACKAGE)) {
     baseName = javaLangPackagePrefix + "." + baseName;
   }
   return String.format("%s$%s$%s", baseName, suffix, randomString.nextString());
 }
Ejemplo n.º 2
0
 @Override
 public String name(UnnamedType unnamedType) {
   return String.format(
       "%s.%s$%s", prefix, unnamedType.getSuperClass().getName(), randomString.nextString());
 }
Ejemplo n.º 3
0
 @Override
 public String name(TypeDescription instrumentedType) {
   return String.format(
       "%s$%s$%s", instrumentedType.getName(), suffix, randomString.nextString());
 }