@Override protected String getCommonSuperClass(final String type1, final String type2) { final String key = type1 + "!_!" + type2; final String previous = this.cache.get(key); if (previous != null) { return previous; } final ClassReader info1 = typeInfo(type1); final ClassReader info2 = typeInfo(type2); final String result = getCommonSuperClass(type1, info1, type2, info2); this.cache.put(key, result); return result; }
private final String callTesteeWith(final Class<?> first, final Class<?> second) { return this.testee.getCommonSuperClass(ClassName.fromClass(first) .asInternalName(), ClassName.fromClass(second).asInternalName()); }
@Override protected String getCommonSuperClass(final String type1, final String type2) { final String key = type1 + "!_!" + type2; final String previous = this.cache.get(key); if (previous != null) { return previous; } final ClassReader info1 = typeInfo(type1); final ClassReader info2 = typeInfo(type2); final String result = getCommonSuperClass(type1, info1, type2, info2); this.cache.put(key, result); return result; }