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