groovy git commit: Refine generics type to fix compilation error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

groovy git commit: Refine generics type to fix compilation error

Daniel.Sun
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X bdc32b56c -> 17fb0de31


Refine generics type to fix compilation error


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/17fb0de3
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/17fb0de3
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/17fb0de3

Branch: refs/heads/GROOVY_2_6_X
Commit: 17fb0de31285d97930f41c9c6d2b4b6aa747ef22
Parents: bdc32b5
Author: danielsun1106 <[hidden email]>
Authored: Sat Mar 10 03:34:51 2018 +0800
Committer: danielsun1106 <[hidden email]>
Committed: Sat Mar 10 03:34:51 2018 +0800

----------------------------------------------------------------------
 src/main/java/org/codehaus/groovy/classgen/asm/util/TypeUtil.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/17fb0de3/src/main/java/org/codehaus/groovy/classgen/asm/util/TypeUtil.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/codehaus/groovy/classgen/asm/util/TypeUtil.java b/src/main/java/org/codehaus/groovy/classgen/asm/util/TypeUtil.java
index 1c8dda9..cae9bfa 100644
--- a/src/main/java/org/codehaus/groovy/classgen/asm/util/TypeUtil.java
+++ b/src/main/java/org/codehaus/groovy/classgen/asm/util/TypeUtil.java
@@ -203,7 +203,7 @@ public abstract class TypeUtil {
             Type.SHORT_TYPE, "java/lang/Short"
     );
 
-    private static final Map<Class<?>, Class<?>> PRIMITIVE_TYPE_TO_WRAPPED_CLASS_MAP = Maps.of(
+    private static final Map<Class<?>, Class<?>> PRIMITIVE_TYPE_TO_WRAPPED_CLASS_MAP = Maps.<Class<?>, Class<?>>of(
         byte.class, Byte.class,
         boolean.class, Boolean.class,
         char.class, Character.class,

Daniel Sun
Apache Groovy committer

Blog: http://blog.sunlan.me
Twitter: @daniel_sun