Removed class level cache.

pull/527/head
jackygurui 9 years ago
parent b6d124f6ca
commit 0c5ae23aea

@ -15,14 +15,9 @@ import net.bytebuddy.matcher.ElementMatchers;
*/
public class Introspectior {
private static final ConcurrentMap<Class, TypeDescription.ForLoadedType> tCache = PlatformDependent.newConcurrentHashMap();
public static TypeDescription.ForLoadedType getTypeDescription(Class c) {
if (!tCache.containsKey(c)) {
return new TypeDescription.ForLoadedType(c);
}
return tCache.get(c);
}
public static MethodDescription getMethodDescription(Class c, String method) {
if (method == null || method.isEmpty()) {

Loading…
Cancel
Save