You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by em...@apache.org on 2022/02/19 17:31:31 UTC
[groovy] 01/02: fix for JDK7
This is an automated email from the ASF dual-hosted git repository.
emilles pushed a commit to branch GROOVY_2_5_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 484d5d20cb27908b6485ede8e1897bb282aa0905
Author: Eric Milles <er...@thomsonreuters.com>
AuthorDate: Sat Feb 19 11:19:39 2022 -0600
fix for JDK7
---
src/main/groovy/groovy/grape/GrapeIvy.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/groovy/groovy/grape/GrapeIvy.groovy b/src/main/groovy/groovy/grape/GrapeIvy.groovy
index 9939bbf..417fe39 100644
--- a/src/main/groovy/groovy/grape/GrapeIvy.groovy
+++ b/src/main/groovy/groovy/grape/GrapeIvy.groovy
@@ -763,7 +763,7 @@ class GrapeIvy implements GrapeEngine {
def resolver = new IBiblioResolver(
name: (String) args.name,
root: (String) args.root,
- m2compatible: (boolean) args.getOrDefault('m2Compatible', Boolean.TRUE),
+ m2compatible: !Boolean.FALSE.equals(args.get('m2Compatible')),
settings: (ResolverSettings) settings
)