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:37:34 GMT
Repository: groovy
Updated Branches:
  refs/heads/master 3bd0d8012 -> d721a39ae


Minor refactoring


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

Branch: refs/heads/master
Commit: d721a39ae9ef6676b4d4a793480fb49a498c72f8
Parents: 3bd0d80
Author: sunlan <sunlan@apache.org>
Authored: Wed Aug 30 03:37:13 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Wed Aug 30 03:37:13 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/d721a39a/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 67ec3a7..40313cd 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