diff --git a/spring-aop/src/testFixtures/java/org/springframework/aop/testfixture/advice/MethodCounter.java b/spring-aop/src/testFixtures/java/org/springframework/aop/testfixture/advice/MethodCounter.java index 384973bd9a..0b3fdd1199 100644 --- a/spring-aop/src/testFixtures/java/org/springframework/aop/testfixture/advice/MethodCounter.java +++ b/spring-aop/src/testFixtures/java/org/springframework/aop/testfixture/advice/MethodCounter.java @@ -19,6 +19,7 @@ package org.springframework.aop.testfixture.advice; import java.io.Serializable; import java.lang.reflect.Method; import java.util.HashMap; +import java.util.Map; /** * Abstract superclass for counting advices etc. @@ -31,7 +32,7 @@ import java.util.HashMap; public class MethodCounter implements Serializable { /** Method name --> count, does not understand overloading */ - private HashMap map = new HashMap<>(); + private Map map = new HashMap<>(); private int allCount;