Skip to content

Commit e24043a

Browse files
springmonstersbrannen
authored andcommitted
Simplify HashMap declaration in test fixture
1 parent 4078b73 commit e24043a

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -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)