commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r609171 - /commons/proper/io/trunk/src/java/org/apache/commons/io/input/CharSequenceReader.java
Date Sat, 05 Jan 2008 16:36:18 GMT
Author: niallp
Date: Sat Jan  5 08:36:18 2008
New Revision: 609171

URL: http://svn.apache.org/viewvc?rev=609171&view=rev
Log:
Woops - remove JDK 1.5 StringBuilder

Modified:
    commons/proper/io/trunk/src/java/org/apache/commons/io/input/CharSequenceReader.java

Modified: commons/proper/io/trunk/src/java/org/apache/commons/io/input/CharSequenceReader.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/java/org/apache/commons/io/input/CharSequenceReader.java?rev=609171&r1=609170&r2=609171&view=diff
==============================================================================
--- commons/proper/io/trunk/src/java/org/apache/commons/io/input/CharSequenceReader.java (original)
+++ commons/proper/io/trunk/src/java/org/apache/commons/io/input/CharSequenceReader.java Sat
Jan  5 08:36:18 2008
@@ -30,7 +30,6 @@
  */
 public class CharSequenceReader extends Reader implements Serializable {
 
-    private static final StringBuilder EMPTY_BUILDER = new StringBuilder(0);
     private final CharSequence charSequence;
     private int idx;
     private int mark;
@@ -41,7 +40,7 @@
      * @param charSequence The character sequence, may be <code>null</code>
      */
     public CharSequenceReader(CharSequence charSequence) {
-        this.charSequence = (charSequence != null ? charSequence : EMPTY_BUILDER);
+        this.charSequence = (charSequence != null ? charSequence : "");
     }
 
     /**



Mime
View raw message