diff --git a/src/main/java/spoon/reflect/factory/TypeFactory.java b/src/main/java/spoon/reflect/factory/TypeFactory.java index a949075e064..ca83aef55f6 100644 --- a/src/main/java/spoon/reflect/factory/TypeFactory.java +++ b/src/main/java/spoon/reflect/factory/TypeFactory.java @@ -209,12 +209,10 @@ public class TypeFactory extends SubFactory { @Deprecated(since = "11.0.0", forRemoval = true) public final CtTypeReference OMITTED_TYPE_ARG_TYPE = createReference(CtTypeReference.OMITTED_TYPE_ARG_NAME); - private final Map, CtType> shadowCache = new ConcurrentHashMap<>(); - private final ConcurrentHashMap>> typeRefCache = new ConcurrentHashMap<>(); - // This map MUST provide a useful computeIfAbsent method in the face of concurrency. // Therefore, we declare it as a ConcurrentHashMap directly. private final ConcurrentHashMap, CtType> shadowCache = new ConcurrentHashMap<>(); + private final ConcurrentHashMap>> typeRefCache = new ConcurrentHashMap<>(); /** * Returns a reference on the null type (type of null).