groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] 02/07: Fix unchecked warning
Date Sat, 02 Nov 2019 20:29:14 GMT
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

commit 6bc06451208f72abed26ef1d2d17ee8b83a061d6
Author: Daniel Sun <sunlan@apache.org>
AuthorDate: Sun Nov 3 00:50:28 2019 +0800

    Fix unchecked warning
---
 src/main/java/org/codehaus/groovy/reflection/ReflectionUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/codehaus/groovy/reflection/ReflectionUtils.java b/src/main/java/org/codehaus/groovy/reflection/ReflectionUtils.java
index f530129..0b8200f 100644
--- a/src/main/java/org/codehaus/groovy/reflection/ReflectionUtils.java
+++ b/src/main/java/org/codehaus/groovy/reflection/ReflectionUtils.java
@@ -93,7 +93,7 @@ public class ReflectionUtils {
      *         enough stackframes to satisfy matchLevel
      */
     public static Class getCallingClass(int matchLevel) {
-        return getCallingClass(matchLevel, Collections.EMPTY_SET);
+        return getCallingClass(matchLevel, Collections.emptySet());
     }
 
     /**


Mime
View raw message