groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject [2/2] incubator-groovy git commit: Set found escape when parsing empty strings.
Date Sun, 28 Jun 2015 09:01:12 GMT
Set found escape when parsing empty strings.


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

Branch: refs/heads/master
Commit: f70235e0729afbcbb8e2401ac6e7914d52e5b9b6
Parents: 04acd5e
Author: Gvaneyck <gvaneyck@riotgames.com>
Authored: Fri Jun 26 20:55:50 2015 -0700
Committer: pascalschumacher <pascalschumacher@gmx.net>
Committed: Sun Jun 28 10:58:23 2015 +0200

----------------------------------------------------------------------
 .../src/main/java/groovy/json/internal/ReaderCharacterSource.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/f70235e0/subprojects/groovy-json/src/main/java/groovy/json/internal/ReaderCharacterSource.java
----------------------------------------------------------------------
diff --git a/subprojects/groovy-json/src/main/java/groovy/json/internal/ReaderCharacterSource.java
b/subprojects/groovy-json/src/main/java/groovy/json/internal/ReaderCharacterSource.java
index bee97b8..abff7d0 100644
--- a/subprojects/groovy-json/src/main/java/groovy/json/internal/ReaderCharacterSource.java
+++ b/subprojects/groovy-json/src/main/java/groovy/json/internal/ReaderCharacterSource.java
@@ -160,13 +160,13 @@ public class ReaderCharacterSource implements CharacterSource {
         try {
             ensureBuffer();
 
+            foundEscape = false;
             if (readBuf[index] == '"') {
                 index++;
                 return EMPTY_CHARS;
             }
 
             int start = index;
-            foundEscape = false;
 
             char[] results = null;
             boolean foundEnd = false;


Mime
View raw message