groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Trivial refactoring
Date Thu, 07 Dec 2017 07:10:47 GMT
Repository: groovy
Updated Branches:
  refs/heads/master 51bf34224 -> 1ef91d1e5


Trivial refactoring


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

Branch: refs/heads/master
Commit: 1ef91d1e5f6df87ce4a6062070695db58a152446
Parents: 51bf342
Author: sunlan <sunlan@apache.org>
Authored: Thu Dec 7 15:10:43 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Thu Dec 7 15:10:43 2017 +0800

----------------------------------------------------------------------
 src/main/org/codehaus/groovy/control/CompilerConfiguration.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/1ef91d1e/src/main/org/codehaus/groovy/control/CompilerConfiguration.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/control/CompilerConfiguration.java b/src/main/org/codehaus/groovy/control/CompilerConfiguration.java
index b5616b3..b6d9cdf 100644
--- a/src/main/org/codehaus/groovy/control/CompilerConfiguration.java
+++ b/src/main/org/codehaus/groovy/control/CompilerConfiguration.java
@@ -232,7 +232,7 @@ public class CompilerConfiguration {
         setDefaultScriptExtension(safeGetSystemProperty("groovy.default.scriptExtension",
".groovy"));
 
         // Source file encoding
-        String encoding = safeGetSystemProperty("file.encoding", "UTF-8");
+        String encoding = safeGetSystemProperty("file.encoding", DEFAULT_SOURCE_ENCODING);
         encoding = safeGetSystemProperty("groovy.source.encoding", encoding);
         setSourceEncoding(encoding);
 


Mime
View raw message