Example #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());
 }
Example #2
0
 @Override
 public String name(UnnamedType unnamedType) {
   return String.format(
       "%s.%s$%s", prefix, unnamedType.getSuperClass().getName(), randomString.nextString());
 }
 @Override
 public String name(TypeDescription instrumentedType) {
   return String.format(
       "%s$%s$%s", instrumentedType.getName(), suffix, randomString.nextString());
 }