Skip to content

Commit aaa10e9

Browse files
author
springmonster
authored
Simplify HashMap declaration in test fixture
Co-authored-by: kuanghc1 <[email protected]> Closes gh-27900
1 parent 7c637f0 commit aaa10e9

File tree

1 file changed

+2
-1
lines changed
  • spring-aop/src/testFixtures/java/org/springframework/aop/testfixture/advice

1 file changed

+2
-1
lines changed

spring-aop/src/testFixtures/java/org/springframework/aop/testfixture/advice/MethodCounter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import java.io.Serializable;
2020
import java.lang.reflect.Method;
2121
import java.util.HashMap;
22+
import java.util.Map;
2223

2324
/**
2425
* Abstract superclass for counting advices etc.
@@ -31,7 +32,7 @@
3132
public class MethodCounter implements Serializable {
3233

3334
/** Method name --> count, does not understand overloading */
34-
private HashMap<String, Integer> map = new HashMap<>();
35+
private Map<String, Integer> map = new HashMap<>();
3536

3637
private int allCount;
3738

0 commit comments

Comments
 (0)