You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/04/19 09:14:18 UTC

[groovy] branch GROOVY-9513 updated: Make `isIndyEnabled` return true by default

This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch GROOVY-9513
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY-9513 by this push:
     new a1c6fd1  Make `isIndyEnabled` return true by default
a1c6fd1 is described below

commit a1c6fd1147c37a946669317945763a70d9dabd0e
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sun Apr 19 17:14:04 2020 +0800

    Make `isIndyEnabled` return true by default
---
 src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
index 6422184..5e28bf7 100644
--- a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -1066,7 +1066,7 @@ public class CompilerConfiguration {
      */
     public boolean isIndyEnabled() {
         Boolean indyEnabled = getOptimizationOptions().get(INVOKEDYNAMIC);
-        return Optional.ofNullable(indyEnabled).orElse(Boolean.FALSE);
+        return Optional.ofNullable(indyEnabled).orElse(Boolean.TRUE);
     }
 
     /**