creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1483924 - /creadur/rat/trunk/apache-rat-core/src/main/java/org/apache/rat/analysis/HeaderCheckWorker.java
Date Fri, 17 May 2013 17:37:07 GMT
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) {



Mime
View raw message