This is an automated email from the ASF dual-hosted git repository.
sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new ab33fc2 Trivial refactoring: Add generic type to avoid warnings
ab33fc2 is described below
commit ab33fc250e355f41e7debe25ed5eefd652638b2f
Author: Daniel.Sun <[email protected]>
AuthorDate: Thu Oct 17 08:55:03 2019 +0800
Trivial refactoring: Add generic type to avoid warnings
---
src/main/java/org/codehaus/groovy/control/ClassNodeResolver.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/codehaus/groovy/control/ClassNodeResolver.java
b/src/main/java/org/codehaus/groovy/control/ClassNodeResolver.java
index 05c938b..e5842a8 100644
--- a/src/main/java/org/codehaus/groovy/control/ClassNodeResolver.java
+++ b/src/main/java/org/codehaus/groovy/control/ClassNodeResolver.java
@@ -91,7 +91,7 @@ public class ClassNodeResolver {
}
// Map to store cached classes
- private final Map<String,ClassNode> cachedClasses = new HashMap();
+ private final Map<String, ClassNode> cachedClasses = new HashMap<>();
/**
* Internal helper used to indicate a cache hit for a class that does not
exist.
* This way further lookups through a slow {@link #findClassNode(String,
CompilationUnit)}