manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1128269 [1/3] - in /incubator/lcf/branches/CONNECTORS-203: connectors/activedirectory/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/activedirectory/ connectors/documentum/connector/src/main/java/org/apache/manifoldc...
Date Fri, 27 May 2011 11:51:02 GMT
Author: kwright
Date: Fri May 27 11:50:58 2011
New Revision: 1128269

URL: http://svn.apache.org/viewvc?rev=1128269&view=rev
Log:
Convert to StringBuilder from StringBuffer

Modified:
    incubator/lcf/branches/CONNECTORS-203/connectors/activedirectory/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/activedirectory/ActiveDirectoryAuthority.java
    incubator/lcf/branches/CONNECTORS-203/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/authorities/DCTM/AuthorityConnector.java
    incubator/lcf/branches/CONNECTORS-203/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java
    incubator/lcf/branches/CONNECTORS-203/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/MatchMap.java
    incubator/lcf/branches/CONNECTORS-203/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java
    incubator/lcf/branches/CONNECTORS-203/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
    incubator/lcf/branches/CONNECTORS-203/connectors/gts/connector/src/main/java/org/apache/manifoldcf/agents/output/gts/GTSConnector.java
    incubator/lcf/branches/CONNECTORS-203/connectors/gts/connector/src/main/java/org/apache/manifoldcf/agents/output/gts/HttpPoster.java
    incubator/lcf/branches/CONNECTORS-203/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/GetConnectionInfo.java
    incubator/lcf/branches/CONNECTORS-203/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/MatchMap.java
    incubator/lcf/branches/CONNECTORS-203/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java
    incubator/lcf/branches/CONNECTORS-203/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnector.java
    incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/GetConnectionInfo.java
    incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LLSERVER.java
    incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
    incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/MatchMap.java
    incubator/lcf/branches/CONNECTORS-203/connectors/memex/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/memex/MatchMap.java
    incubator/lcf/branches/CONNECTORS-203/connectors/meridio/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/meridio/MatchMap.java
    incubator/lcf/branches/CONNECTORS-203/connectors/meridio/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/meridio/MeridioConnector.java
    incubator/lcf/branches/CONNECTORS-203/connectors/rss/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/rss/RSSConnector.java
    incubator/lcf/branches/CONNECTORS-203/connectors/rss/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/rss/Robots.java
    incubator/lcf/branches/CONNECTORS-203/connectors/rss/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/rss/ThrottledFetcher.java
    incubator/lcf/branches/CONNECTORS-203/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/MatchMap.java
    incubator/lcf/branches/CONNECTORS-203/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java
    incubator/lcf/branches/CONNECTORS-203/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java
    incubator/lcf/branches/CONNECTORS-203/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/SolrConnector.java
    incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/BasicParseState.java
    incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/CookieManager.java
    incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/RobotsManager.java
    incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java
    incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java
    incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/common/XMLStringContext.java
    incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/common/XMLWriterContext.java
    incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/IncrementalIngester.java
    incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/outputconnection/OutputConnectionManager.java
    incubator/lcf/branches/CONNECTORS-203/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/APIServlet.java
    incubator/lcf/branches/CONNECTORS-203/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservice/servlet/UserACLServlet.java
    incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/cachemanager/CacheManager.java
    incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/common/XMLDoc.java
    incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceDerby.java
    incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceHSQLDB.java
    incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java
    incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfacePostgreSQL.java
    incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/QueryDescription.java
    incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/ResultSpecification.java
    incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/StringSet.java
    incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/lockmanager/LockObject.java
    incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/system/ManifoldCF.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/CheckAll.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/authority/AuthorityConnectionManager.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/AddScheduledTime.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/GetJobSchedule.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/ListJobStatuses.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/ListJobs.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunDocumentStatus.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunMaxActivityHistory.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunMaxBandwidthHistory.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunQueueStatus.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunSimpleHistory.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/interfaces/QueueTracker.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/interfaces/SortOrder.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/Carrydown.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/HopCount.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/HopDeleteDeps.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/IntrinsicLink.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobManager.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobQueue.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/Jobs.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/PrereqEventManager.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/ScheduleManager.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/repository/RepositoryConnectionManager.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/repository/RepositoryHistoryManager.java
    incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java
    incubator/lcf/branches/CONNECTORS-203/framework/ui-core/src/main/java/org/apache/manifoldcf/ui/util/Encoder.java
    incubator/lcf/branches/CONNECTORS-203/framework/ui-core/src/main/java/org/apache/manifoldcf/ui/util/Formatter.java

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/activedirectory/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/activedirectory/ActiveDirectoryAuthority.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/activedirectory/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/activedirectory/ActiveDirectoryAuthority.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/activedirectory/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/activedirectory/ActiveDirectoryAuthority.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/activedirectory/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/activedirectory/ActiveDirectoryAuthority.java Fri May 27 11:50:58 2011
@@ -594,7 +594,7 @@ public class ActiveDirectoryAuthority ex
     }
     
     //Build the DN searchBase from domain part
-    StringBuffer domainsb = new StringBuffer();
+    StringBuilder domainsb = new StringBuilder();
     int j = 0;
     while (true)
     {
@@ -661,7 +661,7 @@ public class ActiveDirectoryAuthority ex
   protected static String ldapEscape(String input)
   {
     //Add escape sequence to all commas
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     int index = 0;
     while (true)
     {
@@ -681,7 +681,7 @@ public class ActiveDirectoryAuthority ex
   /** Convert a binary SID to a string */
   protected static String sid2String(byte[] SID)
   {
-    StringBuffer strSID = new StringBuffer("S");
+    StringBuilder strSID = new StringBuilder("S");
     long version = SID[0];
     strSID.append("-").append(Long.toString(version));
     long authority = SID[4];

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/authorities/DCTM/AuthorityConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/authorities/DCTM/AuthorityConnector.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/authorities/DCTM/AuthorityConnector.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/authorities/DCTM/AuthorityConnector.java Fri May 27 11:50:58 2011
@@ -806,7 +806,7 @@ public class AuthorityConnector extends 
 
   protected static String insensitiveMatch(boolean insensitive, String field, String value)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     if (insensitive)
       sb.append("upper(").append(field).append(")");
     else
@@ -821,7 +821,7 @@ public class AuthorityConnector extends 
 
   protected static String quoteDQLString(String value)
   {
-    StringBuffer sb = new StringBuffer("'");
+    StringBuilder sb = new StringBuilder("'");
     int i = 0;
     while (i < value.length())
     {

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java Fri May 27 11:50:58 2011
@@ -969,7 +969,7 @@ public class DCTM extends org.apache.man
     // First, build the query
 
     int i = 0;
-    StringBuffer strLocationsClause = new StringBuffer();
+    StringBuilder strLocationsClause = new StringBuilder();
     ArrayList tokenList = new ArrayList();
     ArrayList contentList = null;
     String maxSize = null;
@@ -1032,7 +1032,7 @@ public class DCTM extends org.apache.man
         startTime = startTime - 300000L;
       else
         startTime = 0L;
-      StringBuffer strDQLend = new StringBuffer(" where r_modify_date >= " + buildDateString(startTime) +
+      StringBuilder strDQLend = new StringBuilder(" where r_modify_date >= " + buildDateString(startTime) +
         " and r_modify_date<=" + buildDateString(endTime) +
         " AND (i_is_deleted=TRUE Or (i_is_deleted=FALSE AND a_full_text=TRUE AND r_content_size>0");
 
@@ -1239,7 +1239,7 @@ public class DCTM extends org.apache.man
 
             // The version string format was reorganized on 11/6/2006.
 
-            StringBuffer strVersionLabel = new StringBuffer();
+            StringBuilder strVersionLabel = new StringBuilder();
 
             // Get the type name; this is what we use to figure out the desired attributes
             String typeName = object.getTypeName();
@@ -1338,7 +1338,7 @@ public class DCTM extends org.apache.man
     // Get the forced acls (and whether security is on as well)
     String[] acls = getAcls(spec);
     // Build a "forced acl" version string, of the form ";<acl>+<acl>+..."
-    StringBuffer forcedAclString = new StringBuffer();
+    StringBuilder forcedAclString = new StringBuilder();
     if (acls != null)
     {
       forcedAclString.append('+');
@@ -1406,7 +1406,7 @@ public class DCTM extends org.apache.man
           j++;
         }
         java.util.Arrays.sort(sortArray);
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         packList(sb,sortArray,'+');
         typeMap.put(typeName,sb.toString());
       }
@@ -1425,7 +1425,7 @@ public class DCTM extends org.apache.man
 
     // Calculate the part of the version string that comes from path name and mapping.
     // This starts with = since ; is used by another optional component (the forced acls)
-    StringBuffer pathNameAttributeVersion = new StringBuffer();
+    StringBuilder pathNameAttributeVersion = new StringBuilder();
     if (pathAttributeName != null)
       pathNameAttributeVersion.append("=").append(pathAttributeName).append(":").append(matchMap);
 
@@ -1600,7 +1600,7 @@ public class DCTM extends org.apache.man
             {
               acls = new ArrayList();
               startPosition = unpackList(acls,versionString,startPosition,'+');
-              StringBuffer denyAclBuffer = new StringBuffer();
+              StringBuilder denyAclBuffer = new StringBuilder();
               startPosition = unpack(denyAclBuffer,versionString,startPosition,'+');
               denyAcl = denyAclBuffer.toString();
             }
@@ -3917,7 +3917,7 @@ public class DCTM extends org.apache.man
   }
 
   /** Stuffer for packing a single string with an end delimiter */
-  protected static void pack(StringBuffer output, String value, char delimiter)
+  protected static void pack(StringBuilder output, String value, char delimiter)
   {
     int i = 0;
     while (i < value.length())
@@ -3931,7 +3931,7 @@ public class DCTM extends org.apache.man
   }
 
   /** Unstuffer for the above. */
-  protected static int unpack(StringBuffer sb, String value, int startPosition, char delimiter)
+  protected static int unpack(StringBuilder sb, String value, int startPosition, char delimiter)
   {
     while (startPosition < value.length())
     {
@@ -3949,7 +3949,7 @@ public class DCTM extends org.apache.man
   }
 
   /** Stuffer for packing lists of fixed length */
-  protected static void packFixedList(StringBuffer output, String[] values, char delimiter)
+  protected static void packFixedList(StringBuilder output, String[] values, char delimiter)
   {
     int i = 0;
     while (i < values.length)
@@ -3961,7 +3961,7 @@ public class DCTM extends org.apache.man
   /** Unstuffer for unpacking lists of fixed length */
   protected static int unpackFixedList(String[] output, String value, int startPosition, char delimiter)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     int i = 0;
     while (i < output.length)
     {
@@ -3973,7 +3973,7 @@ public class DCTM extends org.apache.man
   }
 
   /** Stuffer for packing lists of variable length */
-  protected static void packList(StringBuffer output, ArrayList values, char delimiter)
+  protected static void packList(StringBuilder output, ArrayList values, char delimiter)
   {
     pack(output,Integer.toString(values.size()),delimiter);
     int i = 0;
@@ -3984,7 +3984,7 @@ public class DCTM extends org.apache.man
   }
 
   /** Another stuffer for packing lists of variable length */
-  protected static void packList(StringBuffer output, String[] values, char delimiter)
+  protected static void packList(StringBuilder output, String[] values, char delimiter)
   {
     pack(output,Integer.toString(values.length),delimiter);
     int i = 0;
@@ -4003,7 +4003,7 @@ public class DCTM extends org.apache.man
   */
   protected static int unpackList(ArrayList output, String value, int startPosition, char delimiter)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     startPosition = unpack(sb,value,startPosition,delimiter);
     try
     {

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/MatchMap.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/MatchMap.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/MatchMap.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/MatchMap.java Fri May 27 11:50:58 2011
@@ -57,8 +57,8 @@ public class MatchMap
   {
     matchStrings = new ArrayList();
     replaceStrings = new ArrayList();
-    StringBuffer matchString = new StringBuffer();
-    StringBuffer replaceString = new StringBuffer();
+    StringBuilder matchString = new StringBuilder();
+    StringBuilder replaceString = new StringBuilder();
     int i = 0;
     while (i < stringForm.length())
     {
@@ -168,7 +168,7 @@ public class MatchMap
     // original parser (which basically will guarantee that we get it right)
 
     EvaluatorTokenStream et = new EvaluatorTokenStream(oldstyleReplace);
-    StringBuffer newStyleReplace = new StringBuffer();
+    StringBuilder newStyleReplace = new StringBuilder();
 
     while (true)
     {
@@ -214,7 +214,7 @@ public class MatchMap
   }
 
   /** Escape a string so it is verbatim */
-  protected static void escape(StringBuffer output, String input)
+  protected static void escape(StringBuilder output, String input)
   {
     int i = 0;
     while (i < input.length())
@@ -230,7 +230,7 @@ public class MatchMap
   public String toString()
   {
     int i = 0;
-    StringBuffer rval = new StringBuffer();
+    StringBuilder rval = new StringBuilder();
     while (i < matchStrings.size())
     {
       String matchString = (String)matchStrings.get(i);
@@ -246,7 +246,7 @@ public class MatchMap
   }
 
   /** Stuff characters */
-  protected static void stuff(StringBuffer sb, String value)
+  protected static void stuff(StringBuilder sb, String value)
   {
     int i = 0;
     while (i < value.length())
@@ -294,7 +294,7 @@ public class MatchMap
       String outputDescription = (String)replaceStrings.get(j);
       j++;
       // Create a copy buffer
-      StringBuffer outputBuffer = new StringBuffer();
+      StringBuilder outputBuffer = new StringBuilder();
       // Keep track of the index in the original string we have done up to
       int currentIndex = 0;
       // Scan the string using find, and for each one found, do a translation
@@ -335,7 +335,7 @@ public class MatchMap
             if (x == '(')
             {
               // Process evaluation expression
-              StringBuffer numberBuf = new StringBuffer();
+              StringBuilder numberBuf = new StringBuilder();
               boolean upper = false;
               boolean lower = false;
               boolean mixed = false;
@@ -502,13 +502,13 @@ public class MatchMap
         pos++;
       }
 
-      StringBuffer sb;
+      StringBuilder sb;
 
       if (x == '"')
       {
         // Parse text
         pos++;
-        sb = new StringBuffer();
+        sb = new StringBuilder();
         while (true)
         {
           if (pos == text.length())
@@ -538,7 +538,7 @@ public class MatchMap
       }
 
       // Eat number at beginning
-      sb = new StringBuffer();
+      sb = new StringBuilder();
       while (true)
       {
         if (pos == text.length())

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java Fri May 27 11:50:58 2011
@@ -680,7 +680,7 @@ public class FilenetConnector extends or
     // Go through all the document classes and do a query for each one
     //get all mimetypes and build a SQL "where condition"
 
-    StringBuffer mimeTypesClause = new StringBuffer();
+    StringBuilder mimeTypesClause = new StringBuilder();
     int i = 0;
     while (i < spec.getChildCount())
     {
@@ -711,7 +711,7 @@ public class FilenetConnector extends or
       }
     }
 
-    StringBuffer sqlBuffer = new StringBuffer(" WHERE ([IsCurrentVersion] = TRUE AND (");
+    StringBuilder sqlBuffer = new StringBuilder(" WHERE ([IsCurrentVersion] = TRUE AND (");
     sqlBuffer.append(mimeTypesClause);
     sqlBuffer.append(")");
     Calendar c = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
@@ -768,7 +768,7 @@ public class FilenetConnector extends or
         String dc = n.getAttributeValue(SPEC_ATTRIBUTE_VALUE);
         DocClassSpec dcs = new DocClassSpec(n);
         int matchCount = dcs.getMatchCount();
-        StringBuffer moreWhereClause = new StringBuffer(whereClause);
+        StringBuilder moreWhereClause = new StringBuilder(whereClause);
         int q = 0;
         while (q < matchCount)
         {
@@ -812,7 +812,7 @@ public class FilenetConnector extends or
 
   protected static String quoteSQLString(String value)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     sb.append('\'');
     int i = 0;
     while (i < value.length())
@@ -830,7 +830,7 @@ public class FilenetConnector extends or
   {
     c.setTimeInMillis(timeValue);
     //c.computeFields();
-    StringBuffer rval = new StringBuffer();
+    StringBuilder rval = new StringBuilder();
     print_int(rval,c.get(Calendar.YEAR),4);
     print_int(rval,c.get(Calendar.MONTH)+1,2);
     print_int(rval,c.get(Calendar.DAY_OF_MONTH),2);
@@ -842,7 +842,7 @@ public class FilenetConnector extends or
     return rval.toString();
   }
 
-  protected static void print_int(StringBuffer sb, int value, int digits)
+  protected static void print_int(StringBuilder sb, int value, int digits)
   {
     if (digits == 4)
     {
@@ -865,7 +865,7 @@ public class FilenetConnector extends or
     }
   }
 
-  protected static int print_digit(StringBuffer sb, int value, int divisor)
+  protected static int print_digit(StringBuilder sb, int value, int divisor)
   {
     int digit = value / divisor;
     int x = '0' + digit;
@@ -981,7 +981,7 @@ public class FilenetConnector extends or
             // (a) metadata info
             // (b) acl info
             // (c) the url prefix to use
-            StringBuffer versionBuffer = new StringBuffer();
+            StringBuilder versionBuffer = new StringBuilder();
 
             String docClass = fileInfo.getDocClass();
             DocClassSpec docclassspec = (DocClassSpec)docClassSpecs.get(docClass);
@@ -1199,8 +1199,8 @@ public class FilenetConnector extends or
           ArrayList metadataValues = new ArrayList();
           ArrayList aclValues = null;
           ArrayList denyAclValues = null;
-          StringBuffer documentClass = new StringBuffer();
-          StringBuffer urlBase = new StringBuffer();
+          StringBuilder documentClass = new StringBuilder();
+          StringBuilder urlBase = new StringBuilder();
           int position = 0;
           position = unpackList(metadataNames, documentVersion, position, '+');
           position = unpackList(metadataValues, documentVersion, position, '+');
@@ -3905,7 +3905,7 @@ public class FilenetConnector extends or
 
 
   /** Stuffer for packing a single string with an end delimiter */
-  protected static void pack(StringBuffer output, String value, char delimiter)
+  protected static void pack(StringBuilder output, String value, char delimiter)
   {
     int i = 0;
     while (i < value.length())
@@ -3919,7 +3919,7 @@ public class FilenetConnector extends or
   }
 
   /** Unstuffer for the above. */
-  protected static int unpack(StringBuffer sb, String value, int startPosition, char delimiter)
+  protected static int unpack(StringBuilder sb, String value, int startPosition, char delimiter)
   {
     while (startPosition < value.length())
     {
@@ -3937,7 +3937,7 @@ public class FilenetConnector extends or
   }
 
   /** Stuffer for packing lists of fixed length */
-  protected static void packFixedList(StringBuffer output, String[] values, char delimiter)
+  protected static void packFixedList(StringBuilder output, String[] values, char delimiter)
   {
     int i = 0;
     while (i < values.length)
@@ -3949,7 +3949,7 @@ public class FilenetConnector extends or
   /** Unstuffer for unpacking lists of fixed length */
   protected static int unpackFixedList(String[] output, String value, int startPosition, char delimiter)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     int i = 0;
     while (i < output.length)
     {
@@ -3961,7 +3961,7 @@ public class FilenetConnector extends or
   }
 
   /** Stuffer for packing lists of variable length */
-  protected static void packList(StringBuffer output, ArrayList values, char delimiter)
+  protected static void packList(StringBuilder output, ArrayList values, char delimiter)
   {
     pack(output,Integer.toString(values.size()),delimiter);
     int i = 0;
@@ -3972,7 +3972,7 @@ public class FilenetConnector extends or
   }
 
   /** Another stuffer for packing lists of variable length */
-  protected static void packList(StringBuffer output, String[] values, char delimiter)
+  protected static void packList(StringBuilder output, String[] values, char delimiter)
   {
     pack(output,Integer.toString(values.length),delimiter);
     int i = 0;
@@ -3991,7 +3991,7 @@ public class FilenetConnector extends or
   */
   protected static int unpackList(ArrayList output, String value, int startPosition, char delimiter)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     startPosition = unpack(sb,value,startPosition,delimiter);
     try
     {

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/filesystem/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filesystem/FileConnector.java Fri May 27 11:50:58 2011
@@ -174,7 +174,7 @@ public class FileConnector extends org.a
           // Get the file's modified date.
           long lastModified = file.lastModified();
           long fileLength = file.length();
-          StringBuffer sb = new StringBuffer();
+          StringBuilder sb = new StringBuilder();
           sb.append(new Long(lastModified).toString()).append(":").append(new Long(fileLength).toString());
           rval[i] = sb.toString();
         }

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/gts/connector/src/main/java/org/apache/manifoldcf/agents/output/gts/GTSConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/gts/connector/src/main/java/org/apache/manifoldcf/agents/output/gts/GTSConnector.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/gts/connector/src/main/java/org/apache/manifoldcf/agents/output/gts/GTSConnector.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/gts/connector/src/main/java/org/apache/manifoldcf/agents/output/gts/GTSConnector.java Fri May 27 11:50:58 2011
@@ -279,7 +279,7 @@ public class GTSConnector extends org.ap
     String ingestURI = params.getParameter(GTSConfig.PARAM_INGESTURI);
 
     // Now, construct the appropriate string
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     packList(sb,sortArray,'+');
     pack(sb,documentTemplate,'+');
     // From here on down, unpacking is unnecessary.
@@ -310,7 +310,7 @@ public class GTSConnector extends org.ap
 
     // Unpack what we need from the output description.  This consists of the collection names, plus the document template.
     ArrayList collections = new ArrayList();
-    StringBuffer documentTemplateBuffer = new StringBuffer();
+    StringBuilder documentTemplateBuffer = new StringBuilder();
     int startPosition = unpackList(collections,outputDescription,0,'+');
     startPosition = unpack(documentTemplateBuffer,outputDescription,startPosition,'+');
 
@@ -775,7 +775,7 @@ public class GTSConnector extends org.ap
   // Protected methods
 
   /** Stuffer for packing a single string with an end delimiter */
-  protected static void pack(StringBuffer output, String value, char delimiter)
+  protected static void pack(StringBuilder output, String value, char delimiter)
   {
     int i = 0;
     while (i < value.length())
@@ -789,7 +789,7 @@ public class GTSConnector extends org.ap
   }
 
   /** Unstuffer for the above. */
-  protected static int unpack(StringBuffer sb, String value, int startPosition, char delimiter)
+  protected static int unpack(StringBuilder sb, String value, int startPosition, char delimiter)
   {
     while (startPosition < value.length())
     {
@@ -807,7 +807,7 @@ public class GTSConnector extends org.ap
   }
 
   /** Stuffer for packing lists of fixed length */
-  protected static void packFixedList(StringBuffer output, String[] values, char delimiter)
+  protected static void packFixedList(StringBuilder output, String[] values, char delimiter)
   {
     int i = 0;
     while (i < values.length)
@@ -819,7 +819,7 @@ public class GTSConnector extends org.ap
   /** Unstuffer for unpacking lists of fixed length */
   protected static int unpackFixedList(String[] output, String value, int startPosition, char delimiter)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     int i = 0;
     while (i < output.length)
     {
@@ -831,7 +831,7 @@ public class GTSConnector extends org.ap
   }
 
   /** Stuffer for packing lists of variable length */
-  protected static void packList(StringBuffer output, ArrayList values, char delimiter)
+  protected static void packList(StringBuilder output, ArrayList values, char delimiter)
   {
     pack(output,Integer.toString(values.size()),delimiter);
     int i = 0;
@@ -842,7 +842,7 @@ public class GTSConnector extends org.ap
   }
 
   /** Another stuffer for packing lists of variable length */
-  protected static void packList(StringBuffer output, String[] values, char delimiter)
+  protected static void packList(StringBuilder output, String[] values, char delimiter)
   {
     pack(output,Integer.toString(values.length),delimiter);
     int i = 0;
@@ -861,7 +861,7 @@ public class GTSConnector extends org.ap
   */
   protected static int unpackList(ArrayList output, String value, int startPosition, char delimiter)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     startPosition = unpack(sb,value,startPosition,delimiter);
     try
     {
@@ -1101,7 +1101,7 @@ public class GTSConnector extends org.ap
 
   protected static String hexprint(byte x)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     sb.append(nibbleprint(0x0f & (((int)x)>>4))).append(nibbleprint(0x0f & ((int)x)));
     return sb.toString();
   }

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/gts/connector/src/main/java/org/apache/manifoldcf/agents/output/gts/HttpPoster.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/gts/connector/src/main/java/org/apache/manifoldcf/agents/output/gts/HttpPoster.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/gts/connector/src/main/java/org/apache/manifoldcf/agents/output/gts/HttpPoster.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/gts/connector/src/main/java/org/apache/manifoldcf/agents/output/gts/HttpPoster.java Fri May 27 11:50:58 2011
@@ -162,7 +162,7 @@ public class HttpPoster
     RepositoryDocument document, IOutputAddActivity activities)
     throws ManifoldCFException, ServiceInterruption
   {
-    StringBuffer aclXml = new StringBuffer();
+    StringBuilder aclXml = new StringBuilder();
     writeACLs(aclXml,"share",document.getShareACL(),document.getShareDenyACL(),authorityNameString,activities);
     int directoryCount = document.countDirectoryACLs();
     int q = 0;
@@ -268,8 +268,8 @@ public class HttpPoster
 
   }
 
-  /** Write acls into a stringbuffer */
-  protected static void writeACLs(StringBuffer aclXml, String type, String[] acl, String[] denyAcl, String authorityNameString, IOutputAddActivity activities)
+  /** Write acls into a StringBuilder */
+  protected static void writeACLs(StringBuilder aclXml, String type, String[] acl, String[] denyAcl, String authorityNameString, IOutputAddActivity activities)
     throws ManifoldCFException
   {
     if (acl != null && acl.length > 0 || denyAcl != null && denyAcl.length > 0)
@@ -462,7 +462,7 @@ public class HttpPoster
   protected String getResponse(BufferedReader stream) throws ManifoldCFException, ServiceInterruption
   {
     Logging.ingest.debug("Waiting for response stream");
-    StringBuffer res = new StringBuffer();
+    StringBuilder res = new StringBuilder();
     try
     {
       // Stream.ready() always returns false for secure sockets :-(.  So
@@ -548,7 +548,7 @@ public class HttpPoster
   */
   protected static String metadataEncode(String inputString)
   {
-    StringBuffer rval = new StringBuffer();
+    StringBuilder rval = new StringBuilder();
     int i = 0;
     while (i < inputString.length())
     {

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/GetConnectionInfo.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/GetConnectionInfo.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/GetConnectionInfo.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/GetConnectionInfo.java Fri May 27 11:50:58 2011
@@ -73,7 +73,7 @@ public class GetConnectionInfo
 
   protected static String commaEscape(String input)
   {
-    StringBuffer output = new StringBuffer();
+    StringBuilder output = new StringBuilder();
     int i = 0;
     while (i < input.length())
     {

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/MatchMap.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/MatchMap.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/MatchMap.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/MatchMap.java Fri May 27 11:50:58 2011
@@ -57,8 +57,8 @@ public class MatchMap
   {
     matchStrings = new ArrayList();
     replaceStrings = new ArrayList();
-    StringBuffer matchString = new StringBuffer();
-    StringBuffer replaceString = new StringBuffer();
+    StringBuilder matchString = new StringBuilder();
+    StringBuilder replaceString = new StringBuilder();
     int i = 0;
     while (i < stringForm.length())
     {
@@ -168,7 +168,7 @@ public class MatchMap
     // original parser (which basically will guarantee that we get it right)
 
     EvaluatorTokenStream et = new EvaluatorTokenStream(oldstyleReplace);
-    StringBuffer newStyleReplace = new StringBuffer();
+    StringBuilder newStyleReplace = new StringBuilder();
 
     while (true)
     {
@@ -214,7 +214,7 @@ public class MatchMap
   }
 
   /** Escape a string so it is verbatim */
-  protected static void escape(StringBuffer output, String input)
+  protected static void escape(StringBuilder output, String input)
   {
     int i = 0;
     while (i < input.length())
@@ -230,7 +230,7 @@ public class MatchMap
   public String toString()
   {
     int i = 0;
-    StringBuffer rval = new StringBuffer();
+    StringBuilder rval = new StringBuilder();
     while (i < matchStrings.size())
     {
       String matchString = (String)matchStrings.get(i);
@@ -246,7 +246,7 @@ public class MatchMap
   }
 
   /** Stuff characters */
-  protected static void stuff(StringBuffer sb, String value)
+  protected static void stuff(StringBuilder sb, String value)
   {
     int i = 0;
     while (i < value.length())
@@ -294,7 +294,7 @@ public class MatchMap
       String outputDescription = (String)replaceStrings.get(j);
       j++;
       // Create a copy buffer
-      StringBuffer outputBuffer = new StringBuffer();
+      StringBuilder outputBuffer = new StringBuilder();
       // Keep track of the index in the original string we have done up to
       int currentIndex = 0;
       // Scan the string using find, and for each one found, do a translation
@@ -335,7 +335,7 @@ public class MatchMap
             if (x == '(')
             {
               // Process evaluation expression
-              StringBuffer numberBuf = new StringBuffer();
+              StringBuilder numberBuf = new StringBuilder();
               boolean upper = false;
               boolean lower = false;
               boolean mixed = false;
@@ -502,13 +502,13 @@ public class MatchMap
         pos++;
       }
 
-      StringBuffer sb;
+      StringBuilder sb;
 
       if (x == '"')
       {
         // Parse text
         pos++;
-        sb = new StringBuffer();
+        sb = new StringBuilder();
         while (true)
         {
           if (pos == text.length())
@@ -538,7 +538,7 @@ public class MatchMap
       }
 
       // Eat number at beginning
-      sb = new StringBuffer();
+      sb = new StringBuilder();
       while (true)
       {
         if (pos == text.length())

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/jcifs/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharedrive/SharedDriveConnector.java Fri May 27 11:50:58 2011
@@ -288,7 +288,7 @@ public class SharedDriveConnector extend
       try
       {
         byte[] byteArray = serverPath.getBytes("utf-8");
-        StringBuffer output = new StringBuffer();
+        StringBuilder output = new StringBuilder();
         int i = 0;
         while (i < byteArray.length)
         {
@@ -326,7 +326,7 @@ public class SharedDriveConnector extend
       // 3.9.0), and the various clients are responsible for converting that form into something the browser will accept.
       try
       {
-        StringBuffer output = new StringBuffer();
+        StringBuilder output = new StringBuilder();
 
         int i = 0;
         while (i < serverPath.length())
@@ -543,7 +543,7 @@ public class SharedDriveConnector extend
             // The format of this string changed again on 7/3/2009 to permit the ingestion uri/iri to be included.
             // This was to support filename/uri mapping functionality.
 
-            StringBuffer sb = new StringBuffer();
+            StringBuilder sb = new StringBuilder();
 
             // Parseable stuff goes first.  There's no metadata for jcifs, so this will just be the acls
             describeDocumentSecurity(sb,file,acls,shareAcls);
@@ -776,7 +776,7 @@ public class SharedDriveConnector extend
                         int index = 0;
                         index = setDocumentSecurity(rd,version,index);
                         index = setPathMetadata(rd,version,index);
-                        StringBuffer ingestURI = new StringBuffer();
+                        StringBuilder ingestURI = new StringBuilder();
                         index = unpack(ingestURI,version,index,'+');
                         activities.ingestDocument(documentIdentifier, versions[i], ingestURI.toString(), rd);
                       }
@@ -828,7 +828,7 @@ public class SharedDriveConnector extend
                     int index = 0;
                     index = setDocumentSecurity(rd,version,index);
                     index = setPathMetadata(rd,version,index);
-                    StringBuffer ingestURI = new StringBuffer();
+                    StringBuilder ingestURI = new StringBuilder();
                     index = unpack(ingestURI,version,index,'+');
                     activities.ingestDocument(documentIdentifier, versions[i], ingestURI.toString(), rd);
                   }
@@ -973,7 +973,7 @@ public class SharedDriveConnector extend
   /** This method calculates an ACL string based on whether there are forced acls and also based on
   * the acls in place for a file.
   */
-  protected void describeDocumentSecurity(StringBuffer description, SmbFile file, String[] forcedacls,
+  protected void describeDocumentSecurity(StringBuilder description, SmbFile file, String[] forcedacls,
     String[] forcedShareAcls)
     throws ManifoldCFException, IOException
   {
@@ -1277,8 +1277,8 @@ public class SharedDriveConnector extend
   {
     if (version.length() > index && version.charAt(index++) == '+')
     {
-      StringBuffer pathAttributeNameBuffer = new StringBuffer();
-      StringBuffer pathAttributeValueBuffer = new StringBuffer();
+      StringBuilder pathAttributeNameBuffer = new StringBuilder();
+      StringBuilder pathAttributeValueBuffer = new StringBuilder();
       index = unpack(pathAttributeNameBuffer,version,index,'+');
       index = unpack(pathAttributeValueBuffer,version,index,'+');
       String pathAttributeName = pathAttributeNameBuffer.toString();
@@ -2040,7 +2040,7 @@ public class SharedDriveConnector extend
   }
 
   /** Stuffer for packing a single string with an end delimiter */
-  protected static void pack(StringBuffer output, String value, char delimiter)
+  protected static void pack(StringBuilder output, String value, char delimiter)
   {
     int i = 0;
     while (i < value.length())
@@ -2054,7 +2054,7 @@ public class SharedDriveConnector extend
   }
 
   /** Unstuffer for the above. */
-  protected static int unpack(StringBuffer sb, String value, int startPosition, char delimiter)
+  protected static int unpack(StringBuilder sb, String value, int startPosition, char delimiter)
   {
     while (startPosition < value.length())
     {
@@ -2072,7 +2072,7 @@ public class SharedDriveConnector extend
   }
 
   /** Stuffer for packing lists of fixed length */
-  protected static void packFixedList(StringBuffer output, String[] values, char delimiter)
+  protected static void packFixedList(StringBuilder output, String[] values, char delimiter)
   {
     int i = 0;
     while (i < values.length)
@@ -2084,7 +2084,7 @@ public class SharedDriveConnector extend
   /** Unstuffer for unpacking lists of fixed length */
   protected static int unpackFixedList(String[] output, String value, int startPosition, char delimiter)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     int i = 0;
     while (i < output.length)
     {
@@ -2096,7 +2096,7 @@ public class SharedDriveConnector extend
   }
 
   /** Stuffer for packing lists of variable length */
-  protected static void packList(StringBuffer output, ArrayList values, char delimiter)
+  protected static void packList(StringBuilder output, ArrayList values, char delimiter)
   {
     pack(output,Integer.toString(values.size()),delimiter);
     int i = 0;
@@ -2107,7 +2107,7 @@ public class SharedDriveConnector extend
   }
 
   /** Another stuffer for packing lists of variable length */
-  protected static void packList(StringBuffer output, String[] values, char delimiter)
+  protected static void packList(StringBuilder output, String[] values, char delimiter)
   {
     pack(output,Integer.toString(values.length),delimiter);
     int i = 0;
@@ -2126,7 +2126,7 @@ public class SharedDriveConnector extend
   */
   protected static int unpackList(ArrayList output, String value, int startPosition, char delimiter)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     startPosition = unpack(sb,value,startPosition,delimiter);
     try
     {

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnector.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnector.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/jdbc/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jdbc/JDBCConnector.java Fri May 27 11:50:58 2011
@@ -237,7 +237,7 @@ public class JDBCConnector extends org.a
 
     // Do the substitution
     ArrayList paramList = new ArrayList();
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     substituteQuery(ts.idQuery,vm,sb,paramList);
 
     IDynamicResultSet idSet;
@@ -341,7 +341,7 @@ public class JDBCConnector extends org.a
 
     // Do the substitution
     ArrayList paramList = new ArrayList();
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     substituteQuery(ts.versionQuery,vm,sb,paramList);
 
     // Now, build a result return, and a hash table so we can correlate the returned values with the place to put them.
@@ -393,7 +393,7 @@ public class JDBCConnector extends org.a
         else
         {
           // A real version string!  Any acls must be added to the front, if they are present...
-          sb = new StringBuffer();
+          sb = new StringBuilder();
           packList(sb,acls,'+');
           if (acls.length > 0)
           {
@@ -448,7 +448,7 @@ public class JDBCConnector extends org.a
 
     // Do the substitution
     ArrayList paramList = new ArrayList();
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     substituteQuery(ts.dataQuery,vm,sb,paramList);
 
     int i;
@@ -1405,7 +1405,7 @@ public class JDBCConnector extends org.a
     {
       // Unpack access tokens and the deny token too
       ArrayList acls = new ArrayList();
-      StringBuffer denyAclBuffer = new StringBuffer();
+      StringBuilder denyAclBuffer = new StringBuilder();
       int startPos = unpackList(acls,version,0,'+');
       if (startPos < version.length() && version.charAt(startPos++) == '+')
       {
@@ -1475,7 +1475,7 @@ public class JDBCConnector extends org.a
   protected static boolean addIDList(VariableMap map, String varName, String[] documentIdentifiers, boolean[] scanOnly)
   {
     ArrayList params = new ArrayList();
-    StringBuffer sb = new StringBuffer(" (");
+    StringBuilder sb = new StringBuilder(" (");
     int i = 0;
     int k = 0;
     while (i < documentIdentifiers.length)
@@ -1499,7 +1499,7 @@ public class JDBCConnector extends org.a
   /** Given a query, and a parameter map, substitute it.
   * Each variable substitutes the string, and it also substitutes zero or more query parameters.
   */
-  protected static void substituteQuery(String inputString, VariableMap inputMap, StringBuffer outputQuery, ArrayList outputParams)
+  protected static void substituteQuery(String inputString, VariableMap inputMap, StringBuilder outputQuery, ArrayList outputParams)
     throws ManifoldCFException
   {
     // We are looking for strings that look like this: $(something)
@@ -1568,7 +1568,7 @@ public class JDBCConnector extends org.a
   }
 
   /** Stuffer for packing a single string with an end delimiter */
-  protected static void pack(StringBuffer output, String value, char delimiter)
+  protected static void pack(StringBuilder output, String value, char delimiter)
   {
     int i = 0;
     while (i < value.length())
@@ -1582,7 +1582,7 @@ public class JDBCConnector extends org.a
   }
 
   /** Unstuffer for the above. */
-  protected static int unpack(StringBuffer sb, String value, int startPosition, char delimiter)
+  protected static int unpack(StringBuilder sb, String value, int startPosition, char delimiter)
   {
     while (startPosition < value.length())
     {
@@ -1600,7 +1600,7 @@ public class JDBCConnector extends org.a
   }
 
   /** Stuffer for packing lists of fixed length */
-  protected static void packFixedList(StringBuffer output, String[] values, char delimiter)
+  protected static void packFixedList(StringBuilder output, String[] values, char delimiter)
   {
     int i = 0;
     while (i < values.length)
@@ -1612,7 +1612,7 @@ public class JDBCConnector extends org.a
   /** Unstuffer for unpacking lists of fixed length */
   protected static int unpackFixedList(String[] output, String value, int startPosition, char delimiter)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     int i = 0;
     while (i < output.length)
     {
@@ -1624,7 +1624,7 @@ public class JDBCConnector extends org.a
   }
 
   /** Stuffer for packing lists of variable length */
-  protected static void packList(StringBuffer output, ArrayList values, char delimiter)
+  protected static void packList(StringBuilder output, ArrayList values, char delimiter)
   {
     pack(output,Integer.toString(values.size()),delimiter);
     int i = 0;
@@ -1635,7 +1635,7 @@ public class JDBCConnector extends org.a
   }
 
   /** Another stuffer for packing lists of variable length */
-  protected static void packList(StringBuffer output, String[] values, char delimiter)
+  protected static void packList(StringBuilder output, String[] values, char delimiter)
   {
     pack(output,Integer.toString(values.length),delimiter);
     int i = 0;
@@ -1654,7 +1654,7 @@ public class JDBCConnector extends org.a
   */
   protected static int unpackList(ArrayList output, String value, int startPosition, char delimiter)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     startPosition = unpack(sb,value,startPosition,delimiter);
     try
     {
@@ -1678,7 +1678,7 @@ public class JDBCConnector extends org.a
   */
   protected static String createQueryString(String queryText, ArrayList paramList)
   {
-    StringBuffer sb = new StringBuffer(queryText);
+    StringBuilder sb = new StringBuilder(queryText);
     sb.append("; arguments = (");
     int i = 0;
     while (i < paramList.size())
@@ -1699,7 +1699,7 @@ public class JDBCConnector extends org.a
   */
   protected static String quoteSQLString(String input)
   {
-    StringBuffer sb = new StringBuffer("\'");
+    StringBuilder sb = new StringBuilder("\'");
     int i = 0;
     while (i < input.length())
     {
@@ -1729,7 +1729,7 @@ public class JDBCConnector extends org.a
         try
         {
           InputStreamReader reader = new InputStreamReader(is,"utf-8");
-          StringBuffer sb = new StringBuffer();
+          StringBuilder sb = new StringBuilder();
           while (true)
           {
             int x = reader.read();

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/GetConnectionInfo.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/GetConnectionInfo.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/GetConnectionInfo.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/GetConnectionInfo.java Fri May 27 11:50:58 2011
@@ -76,7 +76,7 @@ public class GetConnectionInfo
 
   protected static String commaEscape(String input)
   {
-    StringBuffer output = new StringBuffer();
+    StringBuilder output = new StringBuilder();
     int i = 0;
     while (i < input.length())
     {

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LLSERVER.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LLSERVER.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LLSERVER.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LLSERVER.java Fri May 27 11:50:58 2011
@@ -157,7 +157,7 @@ public class LLSERVER
   {
     if (session == null)
       return null;
-    StringBuffer rval = new StringBuffer();
+    StringBuilder rval = new StringBuilder();
     if (session.getStatus() != 0)
       rval.append("LAPI status code: ").append(session.getStatus());
     if (session.getApiError().length() > 0)

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java Fri May 27 11:50:58 2011
@@ -969,11 +969,11 @@ public class LivelinkConnector extends o
     }
 
     // Prepare the specified metadata
-    StringBuffer metadataString = null;
+    StringBuilder metadataString = null;
     CategoryPathAccumulator catAccum = null;
     if (!includeAllMetadata)
     {
-      metadataString = new StringBuffer();
+      metadataString = new StringBuilder();
       // Put into an array
       String[] sortArray = new String[holder.size()];
       i = 0;
@@ -993,7 +993,7 @@ public class LivelinkConnector extends o
 
     // Calculate the part of the version string that comes from path name and mapping.
     // This starts with = since ; is used by another optional component (the forced acls)
-    StringBuffer pathNameAttributeVersion = new StringBuffer();
+    StringBuilder pathNameAttributeVersion = new StringBuilder();
     if (pathAttributeName != null)
       pathNameAttributeVersion.append("=").append(pathAttributeName).append(":").append(matchMap);
 
@@ -1051,7 +1051,7 @@ public class LivelinkConnector extends o
             // we want to pull the transient information out of the version string where
             // possible (so there is no mismatch between version checking and ingestion).
 
-            StringBuffer sb = new StringBuffer();
+            StringBuilder sb = new StringBuilder();
 
             // On 1/17/2008 I changed the version generation code to NOT include metadata, view info, etc. for folders, since
             // folders make absolutely no use of this info.
@@ -2864,7 +2864,7 @@ public class LivelinkConnector extends o
         String addon = variableContext.getParameter("pathaddon");
         if (addon != null && addon.length() > 0)
         {
-          StringBuffer sb = new StringBuffer();
+          StringBuilder sb = new StringBuilder();
           int k = 0;
           while (k < addon.length())
           {
@@ -3130,7 +3130,7 @@ public class LivelinkConnector extends o
         String addon = variableContext.getParameter("metadataaddon");
         if (addon != null && addon.length() > 0)
         {
-          StringBuffer sb = new StringBuffer();
+          StringBuilder sb = new StringBuilder();
           int k = 0;
           while (k < addon.length())
           {
@@ -3151,7 +3151,7 @@ public class LivelinkConnector extends o
         String addon = variableContext.getParameter("metadataaddon");
         if (addon != null && addon.length() > 0)
         {
-          StringBuffer sb = new StringBuffer();
+          StringBuilder sb = new StringBuilder();
           int k = 0;
           while (k < addon.length())
           {
@@ -3171,7 +3171,7 @@ public class LivelinkConnector extends o
         String addon = variableContext.getParameter("categoryaddon");
         if (addon != null && addon.length() > 0)
         {
-          StringBuffer sb = new StringBuffer();
+          StringBuilder sb = new StringBuilder();
           int k = 0;
           while (k < addon.length())
           {
@@ -3637,7 +3637,7 @@ public class LivelinkConnector extends o
   {
     try
     {
-      StringBuffer llURI = new StringBuffer();
+      StringBuilder llURI = new StringBuilder();
 
       llURI.append(ingestCgiPath);
       llURI.append("?func=ll.login&CurrentClientTime=D%2F2005%2F3%2F9%3A13%3A16%3A30&NextURL=");
@@ -3803,7 +3803,7 @@ public class LivelinkConnector extends o
         }
         rd.setACL(aclArray);
 
-        StringBuffer denyBuffer = new StringBuffer();
+        StringBuilder denyBuffer = new StringBuilder();
         startPos = unpack(denyBuffer,version,startPos,'+');
         String denyAcl = denyBuffer.toString();
         String[] denyAclArray = new String[1];
@@ -4151,14 +4151,14 @@ public class LivelinkConnector extends o
   /** Pack category and attribute */
   protected static String packCategoryAttribute(String category, String attribute)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     pack(sb,category,':');
     pack(sb,attribute,':');
     return sb.toString();
   }
 
   /** Unpack category and attribute */
-  protected static void unpackCategoryAttribute(StringBuffer category, StringBuffer attribute, String value)
+  protected static void unpackCategoryAttribute(StringBuilder category, StringBuilder attribute, String value)
   {
     int startPos = 0;
     startPos = unpack(category,value,startPos,':');
@@ -4166,7 +4166,7 @@ public class LivelinkConnector extends o
   }
 
   /** Stuffer for packing a single string with an end delimiter */
-  protected static void pack(StringBuffer output, String value, char delimiter)
+  protected static void pack(StringBuilder output, String value, char delimiter)
   {
     int i = 0;
     while (i < value.length())
@@ -4180,7 +4180,7 @@ public class LivelinkConnector extends o
   }
 
   /** Unstuffer for the above. */
-  protected static int unpack(StringBuffer sb, String value, int startPosition, char delimiter)
+  protected static int unpack(StringBuilder sb, String value, int startPosition, char delimiter)
   {
     while (startPosition < value.length())
     {
@@ -4198,7 +4198,7 @@ public class LivelinkConnector extends o
   }
 
   /** Stuffer for packing lists of fixed length */
-  protected static void packFixedList(StringBuffer output, String[] values, char delimiter)
+  protected static void packFixedList(StringBuilder output, String[] values, char delimiter)
   {
     int i = 0;
     while (i < values.length)
@@ -4210,7 +4210,7 @@ public class LivelinkConnector extends o
   /** Unstuffer for unpacking lists of fixed length */
   protected static int unpackFixedList(String[] output, String value, int startPosition, char delimiter)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     int i = 0;
     while (i < output.length)
     {
@@ -4222,7 +4222,7 @@ public class LivelinkConnector extends o
   }
 
   /** Stuffer for packing lists of variable length */
-  protected static void packList(StringBuffer output, ArrayList values, char delimiter)
+  protected static void packList(StringBuilder output, ArrayList values, char delimiter)
   {
     pack(output,Integer.toString(values.size()),delimiter);
     int i = 0;
@@ -4233,7 +4233,7 @@ public class LivelinkConnector extends o
   }
 
   /** Another stuffer for packing lists of variable length */
-  protected static void packList(StringBuffer output, String[] values, char delimiter)
+  protected static void packList(StringBuilder output, String[] values, char delimiter)
   {
     pack(output,Integer.toString(values.length),delimiter);
     int i = 0;
@@ -4252,7 +4252,7 @@ public class LivelinkConnector extends o
   */
   protected static int unpackList(ArrayList output, String value, int startPosition, char delimiter)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     startPosition = unpack(sb,value,startPosition,delimiter);
     try
     {
@@ -5269,7 +5269,7 @@ public class LivelinkConnector extends o
     int charindex = 0;
     while (charindex < startPath.length())
     {
-      StringBuffer currentTokenBuffer = new StringBuffer();
+      StringBuilder currentTokenBuffer = new StringBuilder();
       // Find the current token
       while (charindex < startPath.length())
       {
@@ -5380,7 +5380,7 @@ public class LivelinkConnector extends o
     int charindex = 0;
     while (charindex < startPath.length())
     {
-      StringBuffer currentTokenBuffer = new StringBuffer();
+      StringBuilder currentTokenBuffer = new StringBuilder();
       // Find the current token
       while (charindex < startPath.length())
       {
@@ -5476,7 +5476,7 @@ public class LivelinkConnector extends o
   */
   protected static String buildFilterString(DocumentSpecification spec)
   {
-    StringBuffer rval = new StringBuffer();
+    StringBuilder rval = new StringBuilder();
 
 
     boolean first = true;
@@ -5506,7 +5506,7 @@ public class LivelinkConnector extends o
     String filterStringPiece = rval.toString();
     if (filterStringPiece.length() == 0)
       return "0>1";
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     sb.append("SubType=").append(new Integer(LAPI_DOCUMENTS.FOLDERSUBTYPE).toString());
     sb.append(" or SubType=").append(new Integer(LAPI_DOCUMENTS.COMPOUNDDOCUMENTSUBTYPE).toString());
     sb.append(" or SubType=").append(new Integer(LAPI_DOCUMENTS.PROJECTSUBTYPE).toString());
@@ -5950,8 +5950,8 @@ public class LivelinkConnector extends o
       while (i < metadataItems.size())
       {
         String metadataSpec = (String)metadataItems.get(i++);
-        StringBuffer categoryBuffer = new StringBuffer();
-        StringBuffer attributeBuffer = new StringBuffer();
+        StringBuilder categoryBuffer = new StringBuilder();
+        StringBuilder attributeBuffer = new StringBuilder();
         unpackCategoryAttribute(categoryBuffer,attributeBuffer,metadataSpec);
         String category = categoryBuffer.toString();
         String attributeName = attributeBuffer.toString();

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/MatchMap.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/MatchMap.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/MatchMap.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/MatchMap.java Fri May 27 11:50:58 2011
@@ -57,8 +57,8 @@ public class MatchMap
   {
     matchStrings = new ArrayList();
     replaceStrings = new ArrayList();
-    StringBuffer matchString = new StringBuffer();
-    StringBuffer replaceString = new StringBuffer();
+    StringBuilder matchString = new StringBuilder();
+    StringBuilder replaceString = new StringBuilder();
     int i = 0;
     while (i < stringForm.length())
     {
@@ -168,7 +168,7 @@ public class MatchMap
     // original parser (which basically will guarantee that we get it right)
 
     EvaluatorTokenStream et = new EvaluatorTokenStream(oldstyleReplace);
-    StringBuffer newStyleReplace = new StringBuffer();
+    StringBuilder newStyleReplace = new StringBuilder();
 
     while (true)
     {
@@ -214,7 +214,7 @@ public class MatchMap
   }
 
   /** Escape a string so it is verbatim */
-  protected static void escape(StringBuffer output, String input)
+  protected static void escape(StringBuilder output, String input)
   {
     int i = 0;
     while (i < input.length())
@@ -230,7 +230,7 @@ public class MatchMap
   public String toString()
   {
     int i = 0;
-    StringBuffer rval = new StringBuffer();
+    StringBuilder rval = new StringBuilder();
     while (i < matchStrings.size())
     {
       String matchString = (String)matchStrings.get(i);
@@ -246,7 +246,7 @@ public class MatchMap
   }
 
   /** Stuff characters */
-  protected static void stuff(StringBuffer sb, String value)
+  protected static void stuff(StringBuilder sb, String value)
   {
     int i = 0;
     while (i < value.length())
@@ -294,7 +294,7 @@ public class MatchMap
       String outputDescription = (String)replaceStrings.get(j);
       j++;
       // Create a copy buffer
-      StringBuffer outputBuffer = new StringBuffer();
+      StringBuilder outputBuffer = new StringBuilder();
       // Keep track of the index in the original string we have done up to
       int currentIndex = 0;
       // Scan the string using find, and for each one found, do a translation
@@ -335,7 +335,7 @@ public class MatchMap
             if (x == '(')
             {
               // Process evaluation expression
-              StringBuffer numberBuf = new StringBuffer();
+              StringBuilder numberBuf = new StringBuilder();
               boolean upper = false;
               boolean lower = false;
               boolean mixed = false;
@@ -502,13 +502,13 @@ public class MatchMap
         pos++;
       }
 
-      StringBuffer sb;
+      StringBuilder sb;
 
       if (x == '"')
       {
         // Parse text
         pos++;
-        sb = new StringBuffer();
+        sb = new StringBuilder();
         while (true)
         {
           if (pos == text.length())
@@ -538,7 +538,7 @@ public class MatchMap
       }
 
       // Eat number at beginning
-      sb = new StringBuffer();
+      sb = new StringBuilder();
       while (true)
       {
         if (pos == text.length())

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/memex/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/memex/MatchMap.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/memex/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/memex/MatchMap.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/memex/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/memex/MatchMap.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/memex/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/memex/MatchMap.java Fri May 27 11:50:58 2011
@@ -56,8 +56,8 @@ public class MatchMap
   {
     matchStrings = new ArrayList();
     replaceStrings = new ArrayList();
-    StringBuffer matchString = new StringBuffer();
-    StringBuffer replaceString = new StringBuffer();
+    StringBuilder matchString = new StringBuilder();
+    StringBuilder replaceString = new StringBuilder();
     int i = 0;
     while (i < stringForm.length())
     {
@@ -167,7 +167,7 @@ public class MatchMap
     // original parser (which basically will guarantee that we get it right)
 
     EvaluatorTokenStream et = new EvaluatorTokenStream(oldstyleReplace);
-    StringBuffer newStyleReplace = new StringBuffer();
+    StringBuilder newStyleReplace = new StringBuilder();
 
     while (true)
     {
@@ -213,7 +213,7 @@ public class MatchMap
   }
 
   /** Escape a string so it is verbatim */
-  protected static void escape(StringBuffer output, String input)
+  protected static void escape(StringBuilder output, String input)
   {
     int i = 0;
     while (i < input.length())
@@ -229,7 +229,7 @@ public class MatchMap
   public String toString()
   {
     int i = 0;
-    StringBuffer rval = new StringBuffer();
+    StringBuilder rval = new StringBuilder();
     while (i < matchStrings.size())
     {
       String matchString = (String)matchStrings.get(i);
@@ -245,7 +245,7 @@ public class MatchMap
   }
 
   /** Stuff characters */
-  protected static void stuff(StringBuffer sb, String value)
+  protected static void stuff(StringBuilder sb, String value)
   {
     int i = 0;
     while (i < value.length())
@@ -283,7 +283,7 @@ public class MatchMap
       String outputDescription = (String)replaceStrings.get(j);
       j++;
       // Create a copy buffer
-      StringBuffer outputBuffer = new StringBuffer();
+      StringBuilder outputBuffer = new StringBuilder();
       // Keep track of the index in the original string we have done up to
       int currentIndex = 0;
       // Scan the string using find, and for each one found, do a translation
@@ -324,7 +324,7 @@ public class MatchMap
             if (x == '(')
             {
               // Process evaluation expression
-              StringBuffer numberBuf = new StringBuffer();
+              StringBuilder numberBuf = new StringBuilder();
               boolean upper = false;
               boolean lower = false;
               boolean mixed = false;
@@ -491,13 +491,13 @@ public class MatchMap
         pos++;
       }
 
-      StringBuffer sb;
+      StringBuilder sb;
 
       if (x == '"')
       {
         // Parse text
         pos++;
-        sb = new StringBuffer();
+        sb = new StringBuilder();
         while (true)
         {
           if (pos == text.length())
@@ -527,7 +527,7 @@ public class MatchMap
       }
 
       // Eat number at beginning
-      sb = new StringBuffer();
+      sb = new StringBuilder();
       while (true)
       {
         if (pos == text.length())

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/meridio/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/meridio/MatchMap.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/meridio/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/meridio/MatchMap.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/meridio/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/meridio/MatchMap.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/meridio/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/meridio/MatchMap.java Fri May 27 11:50:58 2011
@@ -56,8 +56,8 @@ public class MatchMap
   {
     matchStrings = new ArrayList();
     replaceStrings = new ArrayList();
-    StringBuffer matchString = new StringBuffer();
-    StringBuffer replaceString = new StringBuffer();
+    StringBuilder matchString = new StringBuilder();
+    StringBuilder replaceString = new StringBuilder();
     int i = 0;
     while (i < stringForm.length())
     {
@@ -167,7 +167,7 @@ public class MatchMap
     // original parser (which basically will guarantee that we get it right)
 
     EvaluatorTokenStream et = new EvaluatorTokenStream(oldstyleReplace);
-    StringBuffer newStyleReplace = new StringBuffer();
+    StringBuilder newStyleReplace = new StringBuilder();
 
     while (true)
     {
@@ -213,7 +213,7 @@ public class MatchMap
   }
 
   /** Escape a string so it is verbatim */
-  protected static void escape(StringBuffer output, String input)
+  protected static void escape(StringBuilder output, String input)
   {
     int i = 0;
     while (i < input.length())
@@ -229,7 +229,7 @@ public class MatchMap
   public String toString()
   {
     int i = 0;
-    StringBuffer rval = new StringBuffer();
+    StringBuilder rval = new StringBuilder();
     while (i < matchStrings.size())
     {
       String matchString = (String)matchStrings.get(i);
@@ -245,7 +245,7 @@ public class MatchMap
   }
 
   /** Stuff characters */
-  protected static void stuff(StringBuffer sb, String value)
+  protected static void stuff(StringBuilder sb, String value)
   {
     int i = 0;
     while (i < value.length())
@@ -283,7 +283,7 @@ public class MatchMap
       String outputDescription = (String)replaceStrings.get(j);
       j++;
       // Create a copy buffer
-      StringBuffer outputBuffer = new StringBuffer();
+      StringBuilder outputBuffer = new StringBuilder();
       // Keep track of the index in the original string we have done up to
       int currentIndex = 0;
       // Scan the string using find, and for each one found, do a translation
@@ -324,7 +324,7 @@ public class MatchMap
             if (x == '(')
             {
               // Process evaluation expression
-              StringBuffer numberBuf = new StringBuffer();
+              StringBuilder numberBuf = new StringBuilder();
               boolean upper = false;
               boolean lower = false;
               boolean mixed = false;
@@ -491,13 +491,13 @@ public class MatchMap
         pos++;
       }
 
-      StringBuffer sb;
+      StringBuilder sb;
 
       if (x == '"')
       {
         // Parse text
         pos++;
-        sb = new StringBuffer();
+        sb = new StringBuilder();
         while (true)
         {
           if (pos == text.length())
@@ -527,7 +527,7 @@ public class MatchMap
       }
 
       // Eat number at beginning
-      sb = new StringBuffer();
+      sb = new StringBuilder();
       while (true)
       {
         if (pos == text.length())

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/meridio/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/meridio/MeridioConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/meridio/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/meridio/MeridioConnector.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/meridio/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/meridio/MeridioConnector.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/meridio/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/meridio/MeridioConnector.java Fri May 27 11:50:58 2011
@@ -721,7 +721,7 @@ public class MeridioConnector extends or
         java.util.Arrays.sort(sortArray);
 
         // Prepare the part of the version string that is decodeable
-        StringBuffer decodeableString = new StringBuffer();
+        StringBuilder decodeableString = new StringBuilder();
 
         // Add the metadata piece first
         packList(decodeableString,sortArray,'+');
@@ -814,7 +814,7 @@ public class MeridioConnector extends or
           {
             // Set the version string.  The parseable stuff goes first, so parsing is easy.
             String version = doc.getStr_value();
-            StringBuffer composedVersion = new StringBuffer();
+            StringBuilder composedVersion = new StringBuilder();
             composedVersion.append(decodeableString);
             composedVersion.append(version);
             // Added 9/7/2007
@@ -1102,7 +1102,7 @@ public class MeridioConnector extends or
                 x = docVersion.charAt(startPos++);
                 if (x == '+')
                 {
-                  StringBuffer denyAclBuffer = new StringBuffer();
+                  StringBuilder denyAclBuffer = new StringBuilder();
                   unpack(denyAclBuffer,docVersion,startPos,'+');
                   denyAcl = denyAclBuffer.toString();
                 }
@@ -1126,7 +1126,7 @@ public class MeridioConnector extends or
             char x = docVersion.charAt(startPos++);
             if (x == '+')
             {
-              StringBuffer sb = new StringBuffer();
+              StringBuilder sb = new StringBuilder();
               startPos = unpack(sb,docVersion,startPos,'+');
               pathAttributeName = sb.toString();
               sb.setLength(0);
@@ -3715,7 +3715,7 @@ public class MeridioConnector extends or
   }
 
   /** Stuffer for packing a single string with an end delimiter */
-  protected static void pack(StringBuffer output, String value, char delimiter)
+  protected static void pack(StringBuilder output, String value, char delimiter)
   {
     int i = 0;
     while (i < value.length())
@@ -3729,7 +3729,7 @@ public class MeridioConnector extends or
   }
 
   /** Unstuffer for the above. */
-  protected static int unpack(StringBuffer sb, String value, int startPosition, char delimiter)
+  protected static int unpack(StringBuilder sb, String value, int startPosition, char delimiter)
   {
     while (startPosition < value.length())
     {
@@ -3747,7 +3747,7 @@ public class MeridioConnector extends or
   }
 
   /** Stuffer for packing lists of fixed length */
-  protected static void packFixedList(StringBuffer output, String[] values, char delimiter)
+  protected static void packFixedList(StringBuilder output, String[] values, char delimiter)
   {
     int i = 0;
     while (i < values.length)
@@ -3759,7 +3759,7 @@ public class MeridioConnector extends or
   /** Unstuffer for unpacking lists of fixed length */
   protected static int unpackFixedList(String[] output, String value, int startPosition, char delimiter)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     int i = 0;
     while (i < output.length)
     {
@@ -3771,7 +3771,7 @@ public class MeridioConnector extends or
   }
 
   /** Stuffer for packing lists of variable length */
-  protected static void packList(StringBuffer output, ArrayList values, char delimiter)
+  protected static void packList(StringBuilder output, ArrayList values, char delimiter)
   {
     pack(output,Integer.toString(values.size()),delimiter);
     int i = 0;
@@ -3782,7 +3782,7 @@ public class MeridioConnector extends or
   }
 
   /** Another stuffer for packing lists of variable length */
-  protected static void packList(StringBuffer output, String[] values, char delimiter)
+  protected static void packList(StringBuilder output, String[] values, char delimiter)
   {
     pack(output,Integer.toString(values.length),delimiter);
     int i = 0;
@@ -3801,7 +3801,7 @@ public class MeridioConnector extends or
   */
   protected static int unpackList(ArrayList output, String value, int startPosition, char delimiter)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     startPosition = unpack(sb,value,startPosition,delimiter);
     try
     {



Mime
View raw message