jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cla...@apache.org
Subject [30/50] [abbrv] jena git commit: JENA-938 : Code cleaning (extract of PR #63)
Date Sat, 16 May 2015 08:59:12 GMT
JENA-938 : Code cleaning (extract of PR #63)

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

Branch: refs/heads/add-contract-tests
Commit: 38a594497df2a5d665cf42dac42adcc77cd7f2c1
Parents: 7ef374f
Author: Andy Seaborne <andy@apache.org>
Authored: Wed May 13 20:36:29 2015 +0100
Committer: Andy Seaborne <andy@apache.org>
Committed: Wed May 13 20:36:29 2015 +0100

----------------------------------------------------------------------
 jena-base/src/main/java/org/apache/jena/atlas/io/InStreamUTF8.java | 1 -
 .../src/main/java/org/apache/jena/atlas/io/IndentedWriter.java     | 2 --
 jena-base/src/main/java/org/apache/jena/atlas/lib/Chars.java       | 2 --
 jena-base/src/main/java/org/apache/jena/atlas/lib/IRILib.java      | 1 -
 4 files changed, 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/38a59449/jena-base/src/main/java/org/apache/jena/atlas/io/InStreamUTF8.java
----------------------------------------------------------------------
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/io/InStreamUTF8.java b/jena-base/src/main/java/org/apache/jena/atlas/io/InStreamUTF8.java
index 5903882..a6107a9 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/io/InStreamUTF8.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/io/InStreamUTF8.java
@@ -239,7 +239,6 @@ public final class InStreamUTF8 extends Reader implements CharStream
         {
             char[] chars = new char[bytes.length] ;
             InputStream in = new ByteArrayInputStream(bytes) ;
-            StringBuilder buff = new StringBuilder() ;
             Reader r = new InStreamUTF8(in) ;
             int len ;
             len = r.read(chars) ;

http://git-wip-us.apache.org/repos/asf/jena/blob/38a59449/jena-base/src/main/java/org/apache/jena/atlas/io/IndentedWriter.java
----------------------------------------------------------------------
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/io/IndentedWriter.java b/jena-base/src/main/java/org/apache/jena/atlas/io/IndentedWriter.java
index 51414f9..e6d729b 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/io/IndentedWriter.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/io/IndentedWriter.java
@@ -61,8 +61,6 @@ public class IndentedWriter extends AWriterBase implements AWriter, Closeable
     protected boolean flatMode = false ;
     private boolean flushOnNewline = false ;
     
-    private IndentedWriter() { this(System.out, false) ; }
-    
     /** Construct a UTF8 IndentedWriter around an OutputStream */
     public IndentedWriter(OutputStream outStream) { this(outStream, false) ; }
     

http://git-wip-us.apache.org/repos/asf/jena/blob/38a59449/jena-base/src/main/java/org/apache/jena/atlas/lib/Chars.java
----------------------------------------------------------------------
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/lib/Chars.java b/jena-base/src/main/java/org/apache/jena/atlas/lib/Chars.java
index d8a6dbc..da84832 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/lib/Chars.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/lib/Chars.java
@@ -80,8 +80,6 @@ public class Chars
     private static Pool<CharsetDecoder> decoders = PoolSync.create(new PoolBase<CharsetDecoder>())
;
 
     static {
-        ThreadLocal<CharsetEncoder> t ;
-        
         // Fill the pool.
         for ( int i = 0 ; i < PoolSize ; i++ )
         {

http://git-wip-us.apache.org/repos/asf/jena/blob/38a59449/jena-base/src/main/java/org/apache/jena/atlas/lib/IRILib.java
----------------------------------------------------------------------
diff --git a/jena-base/src/main/java/org/apache/jena/atlas/lib/IRILib.java b/jena-base/src/main/java/org/apache/jena/atlas/lib/IRILib.java
index 3884640..1fa93a5 100644
--- a/jena-base/src/main/java/org/apache/jena/atlas/lib/IRILib.java
+++ b/jena-base/src/main/java/org/apache/jena/atlas/lib/IRILib.java
@@ -228,7 +228,6 @@ public class IRILib
     }
 
     public static boolean containsNonASCII(String string){
-        boolean clean = true ;
         for ( int i = 0 ; i < string.length() ; i++ )
         {
             char ch = string.charAt(i) ;


Mime
View raw message