jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1426777 - /jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenizerText.java
Date Sat, 29 Dec 2012 16:15:10 GMT
Author: andy
Date: Sat Dec 29 16:15:10 2012
New Revision: 1426777

URL: http://svn.apache.org/viewvc?rev=1426777&view=rev
Log:
Fix format strings used for exceptions in bad URIs.

Modified:
    jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenizerText.java

Modified: jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenizerText.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenizerText.java?rev=1426777&r1=1426776&r2=1426777&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenizerText.java (original)
+++ jena/trunk/jena-arq/src/main/java/org/apache/jena/riot/tokens/TokenizerText.java Sat Dec
29 16:15:10 2012
@@ -445,8 +445,6 @@ public final class TokenizerText impleme
     private String readIRI()
     {
         //token.setImage(readString(CH_LT, CH_GT, false)) ;
-        long y = getLine() ;
-        long x = getColumn() ;
         stringBuilder.setLength(0) ;
         for(;;)
         {
@@ -454,11 +452,11 @@ public final class TokenizerText impleme
             if ( ch == EOF )
             {
                 //if ( endNL ) return stringBuilder.toString() ; 
-                exception("Broken IRI: "+stringBuilder.toString(), y, x) ;
+                exception("Broken IRI: "+stringBuilder.toString()) ;
             }
 
             if ( ch == '\n' )
-                exception("Broken IRI (newline): "+stringBuilder.toString(), y, x) ;
+                exception("Broken IRI (newline): "+stringBuilder.toString()) ;
             
             if ( ch == CH_GT )
             {
@@ -480,7 +478,7 @@ public final class TokenizerText impleme
             }
             // Ban certain very bad characters
             if ( !VeryVeryLax && ch == '<' )
-                exception("Broken IRI (bad character: '"+(char)ch+"'): "+stringBuilder.toString(),
y, x) ;
+                exception("Broken IRI (bad character: '%c'): %s",ch,stringBuilder.toString())
;
             insertCodepoint(stringBuilder, ch) ;
         }
     }



Mime
View raw message