You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@creadur.apache.org by se...@apache.org on 2013/05/17 19:37:07 UTC

svn commit: r1483924 - /creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/analysis/HeaderCheckWorker.java

Author: sebb
Date: Fri May 17 17:37:07 2013
New Revision: 1483924

URL: http://svn.apache.org/r1483924
Log:
StringBuffer => StringBuilder

Modified:
    creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/analysis/HeaderCheckWorker.java

Modified: creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/analysis/HeaderCheckWorker.java
URL: http://svn.apache.org/viewvc/creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/analysis/HeaderCheckWorker.java?rev=1483924&r1=1483923&r2=1483924&view=diff
==============================================================================
--- creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/analysis/HeaderCheckWorker.java (original)
+++ creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/analysis/HeaderCheckWorker.java Fri May 17 17:37:07 2013
@@ -78,7 +78,7 @@ class HeaderCheckWorker {
 
     public void read() throws RatHeaderAnalysisException {
         if (!finished) {
-            final StringBuffer headers = new StringBuffer();
+            final StringBuilder headers = new StringBuilder();
             headerLinesToRead = numberOfRetainedHeaderLines;
             try {
                 while(readLine(headers)) {
@@ -104,7 +104,7 @@ class HeaderCheckWorker {
         finished = true;
     }
 
-    boolean readLine(StringBuffer headers) throws IOException, RatHeaderAnalysisException {
+    boolean readLine(StringBuilder headers) throws IOException, RatHeaderAnalysisException {
         String line = reader.readLine();
         boolean result = line != null;
         if (result) {