jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [3/5] jena git commit: Off-by-one error in expect() column numbering.
Date Thu, 30 Apr 2015 11:40:52 GMT
Off-by-one error in expect() column numbering.

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

Branch: refs/heads/master
Commit: 3b1c51c70a9f063f022127dfdccd81edafdfe172
Parents: 219bd45
Author: Andy Seaborne <andy@apache.org>
Authored: Thu Apr 30 11:50:41 2015 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Thu Apr 30 11:50:41 2015 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/jena/riot/tokens/TokenizerText.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/3b1c51c7/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenizerText.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenizerText.java b/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenizerText.java
index 55861b9..0bab839 100644
--- a/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenizerText.java
+++ b/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenizerText.java
@@ -1192,12 +1192,13 @@ public final class TokenizerText implements Tokenizer
                 exception("End of input during expected string: " + str) ;
                 return false ;
             }
-            int inChar = reader.readChar() ;
+            int inChar = reader.peekChar() ;
             if ( inChar != want ) {
                 // System.err.println("N-triple reader error");
                 exception("expected \"" + str + "\"") ;
                 return false ;
             }
+            reader.readChar() ;
         }
         return true ;
     }


Mime
View raw message