From e302c347fb0f2d82209112b487cf73e7dc4fd6f8 Mon Sep 17 00:00:00 2001 From: Anto Christopher Date: Fri, 12 Apr 2024 12:38:10 +0530 Subject: [PATCH] fix: tests --- src/main/java/spoon/reflect/factory/TypeFactory.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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).