groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Minor refactoring
Date Tue, 29 Aug 2017 19:38:29 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 559359e5b -> c1444a905


Minor refactoring

(cherry picked from commit d721a39)


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

Branch: refs/heads/GROOVY_2_6_X
Commit: c1444a9053791bdc2fda123841390a100b541d42
Parents: 559359e
Author: sunlan <sunlan@apache.org>
Authored: Wed Aug 30 03:37:13 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Wed Aug 30 03:38:16 2017 +0800

----------------------------------------------------------------------
 .../java/org/apache/groovy/parser/antlr4/util/StringUtils.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/c1444a90/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/util/StringUtils.java
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/util/StringUtils.java
b/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/util/StringUtils.java
index 8458cfa..088fe6f 100644
--- a/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/util/StringUtils.java
+++ b/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/util/StringUtils.java
@@ -98,8 +98,7 @@ public class StringUtils {
 			}
 
 			if (slashyType == DOLLAR_SLASHY) {
-				replace(sb, Maps.of("$$", "$"));
-				replace(sb, Maps.of("$/", "/"));
+				replace(sb, Maps.of("$$", "$", "$/", "/"));
 			}
 
 			text = sb.toString();


Mime
View raw message