incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1128269 [2/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
Modified: incubator/lcf/branches/CONNECTORS-203/connectors/rss/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/rss/RSSConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/rss/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/rss/RSSConnector.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/rss/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/rss/RSSConnector.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/rss/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/rss/RSSConnector.java Fri May 27 11:50:58 2011
@@ -441,7 +441,7 @@ public class RSSConnector extends org.ap
       CanonicalizationPolicy p = policies.findMatch(rawURL);
 
       // Filter out control characters
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       int i = 0;
       while (i < rawURL.length())
       {
@@ -626,7 +626,7 @@ public class RSSConnector extends org.ap
         }
         java.util.Arrays.sort(sortArray);
 
-        StringBuffer newString = new StringBuffer();
+        StringBuilder newString = new StringBuilder();
         boolean isFirst = true;
         i = 0;
         while (i < sortArray.length)
@@ -650,7 +650,7 @@ public class RSSConnector extends org.ap
       else
       {
         // Do not reorder!
-        StringBuffer newString = new StringBuffer();
+        StringBuilder newString = new StringBuilder();
         int index = 0;
         boolean isFirst = true;
         while (index < queryString.length())
@@ -776,7 +776,7 @@ public class RSSConnector extends org.ap
       String value = nv.getValue();
       fixedListStrings[0] = name;
       fixedListStrings[1] = value;
-      StringBuffer newsb = new StringBuffer();
+      StringBuilder newsb = new StringBuilder();
       packFixedList(newsb,fixedListStrings,'=');
       metadata[k++] = newsb.toString();
     }
@@ -839,7 +839,7 @@ public class RSSConnector extends org.ap
               InputStream is = dechromedData[0].getUtf8Stream();
               try
               {
-                StringBuffer sb = new StringBuffer();
+                StringBuilder sb = new StringBuilder();
                 long checkSum = cache.addData(activities,urlValue,is);
                 // Grab what we need from the passed-down data for the document.  These will all become part
                 // of the version string.
@@ -931,9 +931,9 @@ public class RSSConnector extends org.ap
           if (false && jobType == JOBMODE_CONTINUOUS && oldVersionString != null && oldVersionString.startsWith("-"))
           {
             // It's a feed, so the last etag and last-modified fields should be encoded in this version string.
-            StringBuffer lastETagBuffer = new StringBuffer();
+            StringBuilder lastETagBuffer = new StringBuilder();
             int unpackPos = unpack(lastETagBuffer,oldVersionString,1,'+');
-            StringBuffer lastModifiedBuffer = new StringBuffer();
+            StringBuilder lastModifiedBuffer = new StringBuilder();
             unpackPos = unpack(lastModifiedBuffer,oldVersionString,unpackPos,'+');
             if (lastETagBuffer.length() > 0)
               lastETagValue = lastETagBuffer.toString();
@@ -1068,7 +1068,7 @@ public class RSSConnector extends org.ap
                       try
                       {
                         long checkSum = cache.addData(activities,urlValue,is);
-                        StringBuffer sb = new StringBuffer();
+                        StringBuilder sb = new StringBuilder();
                         if (ingestURL != null)
                         {
                           // We think it is ingestable.  The version string accordingly starts with a "+".
@@ -1315,7 +1315,7 @@ public class RSSConnector extends org.ap
         // Treat it as an ingestable document.
         // Version *should* start with a "+".
         ArrayList acls = new ArrayList();
-        StringBuffer denyAclBuffer = new StringBuffer();
+        StringBuilder denyAclBuffer = new StringBuilder();
         int startPos = unpackList(acls,version,1,'+');
         if (startPos < version.length() && version.charAt(startPos++) == '+')
         {
@@ -1323,7 +1323,7 @@ public class RSSConnector extends org.ap
         }
         ArrayList metadata = new ArrayList();
         startPos = unpackList(metadata,version,startPos,'+');
-        StringBuffer ingestUrlBuffer = new StringBuffer();
+        StringBuilder ingestUrlBuffer = new StringBuilder();
         startPos = unpack(ingestUrlBuffer,version,startPos,'+');
         String ingestURL = ingestUrlBuffer.toString();
         ArrayList pubDates = new ArrayList();
@@ -1979,7 +1979,7 @@ public class RSSConnector extends org.ap
 
 
     // Build the url seed string, and the url regexp match and map
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     ArrayList regexp = new ArrayList();
     ArrayList matchStrings = new ArrayList();
     int feedTimeoutValue = 60;
@@ -5043,7 +5043,7 @@ public class RSSConnector extends org.ap
   }
 
   /** 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())
@@ -5057,7 +5057,7 @@ public class RSSConnector 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())
     {
@@ -5075,7 +5075,7 @@ public class RSSConnector 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)
@@ -5087,7 +5087,7 @@ public class RSSConnector 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)
     {
@@ -5099,7 +5099,7 @@ public class RSSConnector 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;
@@ -5110,7 +5110,7 @@ public class RSSConnector 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;
@@ -5129,7 +5129,7 @@ public class RSSConnector 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
     {
@@ -5318,13 +5318,13 @@ public class RSSConnector extends org.ap
         pos++;
       }
 
-      StringBuffer sb;
+      StringBuilder sb;
 
       if (x == '"')
       {
         // Parse text
         pos++;
-        sb = new StringBuffer();
+        sb = new StringBuilder();
         while (true)
         {
           if (pos == text.length())
@@ -5354,7 +5354,7 @@ public class RSSConnector extends org.ap
       }
 
       // Eat number at beginning
-      sb = new StringBuffer();
+      sb = new StringBuilder();
       while (true)
       {
         if (pos == text.length())
@@ -5515,7 +5515,7 @@ public class RSSConnector extends org.ap
       if (evalExpression == null || evalExpression.length() == 0)
         return url;
 
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       EvaluatorTokenStream et = new EvaluatorTokenStream(evalExpression);
 
       while (true)

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

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/rss/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/rss/ThrottledFetcher.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/rss/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/rss/ThrottledFetcher.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/rss/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/rss/ThrottledFetcher.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/rss/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/rss/ThrottledFetcher.java Fri May 27 11:50:58 2011
@@ -561,7 +561,7 @@ public class ThrottledFetcher
       throws ManifoldCFException, ServiceInterruption
     {
 
-      StringBuffer sb = new StringBuffer(protocol);
+      StringBuilder sb = new StringBuilder(protocol);
       sb.append("://").append(server.getServerName());
       if (port != -1)
         sb.append(":").append(Integer.toString(port));

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/MatchMap.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/MatchMap.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/MatchMap.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/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/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/sharepoint/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/sharepoint/SharePointRepository.java Fri May 27 11:50:58 2011
@@ -530,7 +530,7 @@ public class SharePointRepository extend
 
     // 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);
 
@@ -677,7 +677,7 @@ public class SharePointRepository extend
                   String versionToken = modifyDate;
                   // Revamped version string on 11/8/2006 to make parseability better
 
-                  StringBuffer sb = new StringBuffer();
+                  StringBuilder sb = new StringBuilder();
 
                   packList(sb,sortedMetadataFields,'+');
 
@@ -915,7 +915,7 @@ public class SharePointRepository extend
               nodeDocs.clear();
               docs.processPath(nodeDocs, "*", documents);
 
-              StringBuffer sb = new StringBuffer();
+              StringBuilder sb = new StringBuilder();
               for( int j =0; j < nodeDocs.size(); j++)
               {
                 Object node = nodeDocs.get(j);
@@ -989,7 +989,7 @@ public class SharePointRepository extend
               startPosition = unpackList(acls,version,startPosition,'+');
               if (startPosition < version.length())
               {
-                StringBuffer denyAclBuffer = new StringBuffer();
+                StringBuilder denyAclBuffer = new StringBuilder();
                 startPosition = unpack(denyAclBuffer,version,startPosition,'+');
                 denyAcl = denyAclBuffer.toString();
               }
@@ -1197,7 +1197,7 @@ public class SharePointRepository extend
                     if (Logging.connectors.isDebugEnabled())
                     {
                       j = 0;
-                      StringBuffer sb = new StringBuffer("SharePoint: Acls: [ ");
+                      StringBuilder sb = new StringBuilder("SharePoint: Acls: [ ");
                       while (j < actualAcls.length)
                       {
                         sb.append(actualAcls[j++]).append(" ");
@@ -2631,7 +2631,7 @@ public class SharePointRepository extend
           String lib = sn.getAttributeValue("lib");
           String path = site + "/" + lib + "/*";
           String allmetadata = sn.getAttributeValue("allmetadata");
-          StringBuffer metadataFieldList = new StringBuffer();
+          StringBuilder metadataFieldList = new StringBuilder();
           ArrayList metadataFieldArray = new ArrayList();
           if (allmetadata == null || !allmetadata.equals("true"))
           {
@@ -2717,7 +2717,7 @@ public class SharePointRepository extend
           String path = sn.getAttributeValue("match");
           String action = sn.getAttributeValue("action");
           String allmetadata = sn.getAttributeValue("allmetadata");
-          StringBuffer metadataFieldList = new StringBuffer();
+          StringBuilder metadataFieldList = new StringBuilder();
           ArrayList metadataFieldArray = new ArrayList();
           if (action.equals("include"))
           {
@@ -3886,7 +3886,7 @@ public class SharePointRepository extend
         String path = site + "/" + lib + "/*";
         
         String allmetadata = sn.getAttributeValue("allmetadata");
-        StringBuffer metadataFieldList = new StringBuffer();
+        StringBuilder metadataFieldList = new StringBuilder();
         if (allmetadata == null || !allmetadata.equals("true"))
         {
           int j = 0;
@@ -3936,7 +3936,7 @@ public class SharePointRepository extend
         String path = sn.getAttributeValue("match");
         String action = sn.getAttributeValue("action");
         String allmetadata = sn.getAttributeValue("allmetadata");
-        StringBuffer metadataFieldList = new StringBuffer();
+        StringBuilder metadataFieldList = new StringBuilder();
         if (action.equals("include"))
         {
           if (allmetadata == null || !allmetadata.equals("true"))
@@ -4861,7 +4861,7 @@ public class SharePointRepository extend
   */
   public static String decodePath(String relPath)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     String[] pathEntries = relPath.split("/");
     int k = 0;
 
@@ -4882,7 +4882,7 @@ public class SharePointRepository extend
   */
   public static String encodePath(String relPath)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     String[] pathEntries = relPath.split("/");
     int k = 0;
 
@@ -4899,7 +4899,7 @@ public class SharePointRepository 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())
@@ -4913,7 +4913,7 @@ public class SharePointRepository 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())
     {
@@ -4931,7 +4931,7 @@ public class SharePointRepository 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)
@@ -4943,7 +4943,7 @@ public class SharePointRepository 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)
     {
@@ -4955,7 +4955,7 @@ public class SharePointRepository 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;
@@ -4966,7 +4966,7 @@ public class SharePointRepository 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;
@@ -4985,7 +4985,7 @@ public class SharePointRepository 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/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java Fri May 27 11:50:58 2011
@@ -994,7 +994,7 @@ public class HttpPoster
   /** XML encoding */
   protected static String xmlEncode(String input)
   {
-    StringBuffer sb = new StringBuffer("<![CDATA[");
+    StringBuilder sb = new StringBuilder("<![CDATA[");
     sb.append(input);
     sb.append("]]>");
     return sb.toString();

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/SolrConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/SolrConnector.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/SolrConnector.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/SolrConnector.java Fri May 27 11:50:58 2011
@@ -199,7 +199,7 @@ public class SolrConnector extends org.a
   public String getOutputDescription(OutputSpecification spec)
     throws ManifoldCFException, ServiceInterruption
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
 
     // All the arguments need to go into this string, since they affect ingestion.
     Map args = new HashMap();
@@ -244,7 +244,7 @@ public class SolrConnector extends org.a
         String value = (String)values.get(j++);
         fixedList[0] = name;
         fixedList[1] = value;
-        StringBuffer pairBuffer = new StringBuffer();
+        StringBuilder pairBuffer = new StringBuilder();
         packFixedList(pairBuffer,fixedList,'=');
         nameValues.add(pairBuffer.toString());
       }
@@ -285,7 +285,7 @@ public class SolrConnector extends org.a
       String target = (String)fieldMap.get(source);
       fixedList[0] = source;
       fixedList[1] = target;
-      StringBuffer pairBuffer = new StringBuffer();
+      StringBuilder pairBuffer = new StringBuilder();
       packFixedList(pairBuffer,fixedList,'=');
       sourceTargets.add(pairBuffer.toString());
     }
@@ -1585,7 +1585,7 @@ public class SolrConnector extends org.a
   // 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())
@@ -1599,7 +1599,7 @@ public class SolrConnector 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())
     {
@@ -1617,7 +1617,7 @@ public class SolrConnector 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)
@@ -1629,7 +1629,7 @@ public class SolrConnector 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)
     {
@@ -1641,7 +1641,7 @@ public class SolrConnector 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;
@@ -1652,7 +1652,7 @@ public class SolrConnector 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;
@@ -1671,7 +1671,7 @@ public class SolrConnector 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
     {

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/BasicParseState.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/BasicParseState.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/BasicParseState.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/BasicParseState.java Fri May 27 11:50:58 2011
@@ -45,9 +45,9 @@ public class BasicParseState
 
   protected int currentState = BASICPARSESTATE_NORMAL;
 
-  protected StringBuffer currentTagNameBuffer = null;
-  protected StringBuffer currentAttrNameBuffer = null;
-  protected StringBuffer currentValueBuffer = null;
+  protected StringBuilder currentTagNameBuffer = null;
+  protected StringBuilder currentAttrNameBuffer = null;
+  protected StringBuilder currentValueBuffer = null;
 
   protected String currentTagName = null;
   protected String currentAttrName = null;
@@ -84,12 +84,12 @@ public class BasicParseState
       else if (thisChar == '/')
       {
         currentState = BASICPARSESTATE_IN_END_TAG_NAME;
-        currentTagNameBuffer = new StringBuffer();
+        currentTagNameBuffer = new StringBuilder();
       }
       else
       {
         currentState = BASICPARSESTATE_IN_TAG_NAME;
-        currentTagNameBuffer = new StringBuffer();
+        currentTagNameBuffer = new StringBuilder();
         if (!isHTMLWhitespace(thisChar))
           currentTagNameBuffer.append(thisCharLower);
       }
@@ -133,7 +133,7 @@ public class BasicParseState
           currentTagNameBuffer = null;
           currentAttrMap = new HashMap();
           currentState = BASICPARSESTATE_IN_ATTR_NAME;
-          currentAttrNameBuffer = new StringBuffer();
+          currentAttrNameBuffer = new StringBuilder();
         }
       }
       else if (thisChar == '/')
@@ -189,7 +189,7 @@ public class BasicParseState
           currentAttrName = currentAttrNameBuffer.toString();
           currentAttrNameBuffer = null;
           currentState = BASICPARSESTATE_IN_ATTR_VALUE;
-          currentValueBuffer = new StringBuffer();
+          currentValueBuffer = new StringBuilder();
         }
       }
       else if (thisChar == '/')
@@ -231,7 +231,7 @@ public class BasicParseState
       if (thisChar == '=')
       {
         currentState = BASICPARSESTATE_IN_ATTR_VALUE;
-        currentValueBuffer = new StringBuffer();
+        currentValueBuffer = new StringBuilder();
       }
       else if (thisChar == '>')
       {
@@ -251,7 +251,7 @@ public class BasicParseState
       {
         currentAttrMap.put(currentAttrName,"");
         currentState = BASICPARSESTATE_IN_ATTR_NAME;
-        currentAttrNameBuffer = new StringBuffer();
+        currentAttrNameBuffer = new StringBuilder();
         currentAttrNameBuffer.append(thisCharLower);
         currentAttrName = null;
       }
@@ -310,7 +310,7 @@ public class BasicParseState
         currentAttrName = null;
         currentValueBuffer = null;
         currentState = BASICPARSESTATE_IN_ATTR_NAME;
-        currentAttrNameBuffer = new StringBuffer();
+        currentAttrNameBuffer = new StringBuilder();
       }
       else
         currentValueBuffer.append(thisChar);
@@ -322,7 +322,7 @@ public class BasicParseState
         currentAttrName = null;
         currentValueBuffer = null;
         currentState = BASICPARSESTATE_IN_ATTR_NAME;
-        currentAttrNameBuffer = new StringBuffer();
+        currentAttrNameBuffer = new StringBuilder();
       }
       else
         currentValueBuffer.append(thisChar);
@@ -334,7 +334,7 @@ public class BasicParseState
         currentAttrName = null;
         currentValueBuffer = null;
         currentState = BASICPARSESTATE_IN_ATTR_NAME;
-        currentAttrNameBuffer = new StringBuffer();
+        currentAttrNameBuffer = new StringBuilder();
       }
       else if (thisChar == '/')
       {
@@ -381,7 +381,7 @@ public class BasicParseState
   /** Decode an html attribute */
   protected static String htmlAttributeDecode(String input)
   {
-    StringBuffer output = new StringBuffer();
+    StringBuilder output = new StringBuilder();
     int i = 0;
     while (i < input.length())
     {
@@ -415,7 +415,7 @@ public class BasicParseState
       try
       {
         int value = Integer.parseInt(input.substring(1));
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         sb.append((char)value);
         return sb.toString();
       }

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/CookieManager.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/CookieManager.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/CookieManager.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/CookieManager.java Fri May 27 11:50:58 2011
@@ -422,7 +422,7 @@ public class CookieManager extends org.a
   */
   protected static String portsToString(int[] ports)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     int i = 0;
     while (i < ports.length)
     {

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

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/ThrottledFetcher.java Fri May 27 11:50:58 2011
@@ -1281,7 +1281,7 @@ public class ThrottledFetcher
       LoginCookies loginCookies)
       throws ManifoldCFException, ServiceInterruption
     {
-      StringBuffer sb = new StringBuffer(protocol);
+      StringBuilder sb = new StringBuilder(protocol);
       sb.append("://").append(server);
       if (port != -1)
       {
@@ -1359,7 +1359,7 @@ public class ThrottledFetcher
           String fullUrlPath;
           if (formData != null)
           {
-            StringBuffer psb = new StringBuffer(urlPath);
+            StringBuilder psb = new StringBuilder(urlPath);
             Iterator iter = formData.getElementIterator();
             char appendChar;
             if (urlPath.indexOf("?") == -1)

Modified: incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java Fri May 27 11:50:58 2011
@@ -538,7 +538,7 @@ public class WebcrawlerConnector extends
       String value = nv.getValue();
       fixedListStrings[0] = name;
       fixedListStrings[1] = value;
-      StringBuffer newsb = new StringBuffer();
+      StringBuilder newsb = new StringBuilder();
       packFixedList(newsb,fixedListStrings,'=');
       metadata[k++] = newsb.toString();
     }
@@ -613,7 +613,7 @@ public class WebcrawlerConnector extends
               // Do the mapping from the current host name to the IP address
               URL url = new URL(currentURI);
               String hostName = url.getHost();
-              StringBuffer ipAddressBuffer = new StringBuffer();
+              StringBuilder ipAddressBuffer = new StringBuilder();
               int ipAddressStatus = lookupIPAddress(currentURI,activities,hostName,currentTime,ipAddressBuffer);
               if (ipAddressStatus == RESULTSTATUS_TRUE)
               {
@@ -1038,7 +1038,7 @@ public class WebcrawlerConnector extends
             break;
           case RESULT_VERSION_NEEDED:
             // Calculate version from document data, which is presumed to be present.
-            StringBuffer sb = new StringBuffer();
+            StringBuilder sb = new StringBuilder();
 
             // Acls
             packList(sb,acls,'+');
@@ -1148,7 +1148,7 @@ public class WebcrawlerConnector extends
 
           // Unpack the version string
           ArrayList acls = new ArrayList();
-          StringBuffer denyAclBuffer = new StringBuffer();
+          StringBuilder denyAclBuffer = new StringBuilder();
           ArrayList metadata = new ArrayList();
           int index = unpackList(acls,version,0,'+');
           if (index < version.length() && version.charAt(index++) == '+')
@@ -4483,7 +4483,7 @@ public class WebcrawlerConnector extends
   /** Look up an ipaddress given a non-canonical host name.
   *@return appropriate status.
   */
-  protected int lookupIPAddress(String documentIdentifier, IVersionActivity activities, String hostName, long currentTime, StringBuffer ipAddressBuffer)
+  protected int lookupIPAddress(String documentIdentifier, IVersionActivity activities, String hostName, long currentTime, StringBuilder ipAddressBuffer)
     throws ManifoldCFException, ServiceInterruption
   {
     String eventName = makeDNSEventName(activities,hostName);
@@ -4976,7 +4976,7 @@ public class WebcrawlerConnector extends
         }
         java.util.Arrays.sort(sortArray);
 
-        StringBuffer newString = new StringBuffer();
+        StringBuilder newString = new StringBuilder();
         boolean isFirst = true;
         i = 0;
         while (i < sortArray.length)
@@ -5000,7 +5000,7 @@ public class WebcrawlerConnector extends
       else
       {
         // Do not reorder!
-        StringBuffer newString = new StringBuffer();
+        StringBuilder newString = new StringBuilder();
         int index = 0;
         boolean isFirst = true;
         while (index < queryString.length())
@@ -6748,7 +6748,7 @@ public class WebcrawlerConnector extends
   }
 
   /** 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())
@@ -6762,7 +6762,7 @@ public class WebcrawlerConnector extends
   }
 
   /** 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())
     {
@@ -6780,7 +6780,7 @@ public class WebcrawlerConnector extends
   }
 
   /** 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)
@@ -6792,7 +6792,7 @@ public class WebcrawlerConnector extends
   /** 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)
     {
@@ -6804,7 +6804,7 @@ public class WebcrawlerConnector extends
   }
 
   /** 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;
@@ -6815,7 +6815,7 @@ public class WebcrawlerConnector extends
   }
 
   /** 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;
@@ -6834,7 +6834,7 @@ public class WebcrawlerConnector extends
   */
   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/framework/agents/src/main/java/org/apache/manifoldcf/agents/common/XMLStringContext.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/common/XMLStringContext.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/common/XMLStringContext.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/common/XMLStringContext.java Fri May 27 11:50:58 2011
@@ -32,12 +32,12 @@ import java.io.IOException;
 import org.apache.manifoldcf.core.interfaces.*;
 
 /** An instance of this class represents a parsing context within a node, where the data value is to be recorded as an in-memory string.  The data string is
-* available as a local stringbuffer object, which will be accessible to any class that extends this one.
+* available as a local StringBuilder object, which will be accessible to any class that extends this one.
 */
 public class XMLStringContext extends XMLContext
 {
   /** The string buffer */
-  protected StringBuffer value = new StringBuffer();
+  protected StringBuilder value = new StringBuilder();
 
   /** Full constructor.  Used for individual tags. */
   public XMLStringContext(XMLStream theStream, String namespaceURI, String localname, String qname, Attributes theseAttributes)

Modified: incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/common/XMLWriterContext.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/common/XMLWriterContext.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/common/XMLWriterContext.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/common/XMLWriterContext.java Fri May 27 11:50:58 2011
@@ -164,7 +164,7 @@ public class XMLWriterContext extends XM
   /** Convert a string to a value that's safe to include inside an attribute value */
   protected static String escapeAttribute(String value)
   {
-    StringBuffer rval = new StringBuffer();
+    StringBuilder rval = new StringBuilder();
     int i = 0;
     while (i < value.length())
     {
@@ -186,7 +186,7 @@ public class XMLWriterContext extends XM
       char x = chars[i];
       if (x == '<' || x == '>' || x == '&'|| (x < ' ' && x >= 0))
       {
-        StringBuffer rval = new StringBuffer();
+        StringBuilder rval = new StringBuilder();
         rval.append("&#").append(Integer.toString((int)x)).append(";");
         out.write(rval.toString());
         continue;

Modified: incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/IncrementalIngester.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/IncrementalIngester.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/IncrementalIngester.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/IncrementalIngester.java Fri May 27 11:50:58 2011
@@ -463,7 +463,7 @@ public class IncrementalIngester extends
       Iterator iter = docIDValues.keySet().iterator();
       j = 0;
       ArrayList list = new ArrayList();
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       while (iter.hasNext())
       {
         if (j == maxInClause)
@@ -697,7 +697,7 @@ public class IncrementalIngester extends
         Iterator iter = docURIHashValues.keySet().iterator();
         j = 0;
         ArrayList hashList = new ArrayList();
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         while (iter.hasNext())
         {
           if (j == maxInClause)
@@ -915,7 +915,7 @@ public class IncrementalIngester extends
     beginTransaction();
     try
     {
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       ArrayList list = new ArrayList();
       int maxCount = getMaxInClause();
       int j = 0;
@@ -1038,7 +1038,7 @@ public class IncrementalIngester extends
     beginTransaction();
     try
     {
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       ArrayList list = new ArrayList();
       int maxCount = getMaxInClause();
       int j = 0;
@@ -1140,7 +1140,7 @@ public class IncrementalIngester extends
     // Loop through the hash codes
     Iterator iter = idCodes.keySet().iterator();
     ArrayList list = new ArrayList();
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     j = 0;
     while (iter.hasNext())
     {

Modified: incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/outputconnection/OutputConnectionManager.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/outputconnection/OutputConnectionManager.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/outputconnection/OutputConnectionManager.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/agents/src/main/java/org/apache/manifoldcf/agents/outputconnection/OutputConnectionManager.java Fri May 27 11:50:58 2011
@@ -524,7 +524,7 @@ public class OutputConnectionManager ext
     try
     {
       i = 0;
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       ArrayList params = new ArrayList();
       int j = 0;
       int maxIn = getMaxInClause();

Modified: incubator/lcf/branches/CONNECTORS-203/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/APIServlet.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/APIServlet.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/APIServlet.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/APIServlet.java Fri May 27 11:50:58 2011
@@ -331,7 +331,7 @@ public class APIServlet extends HttpServ
     }
 
     // We presume the data is utf-8
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     char[] buffer = new char[65536];
     Reader r = new InputStreamReader(data,"utf-8");
     while (true)
@@ -445,7 +445,7 @@ public class APIServlet extends HttpServ
     }
 
     // We presume the data is utf-8
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     char[] buffer = new char[65536];
     Reader r = new InputStreamReader(data,"utf-8");
     while (true)

Modified: incubator/lcf/branches/CONNECTORS-203/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservice/servlet/UserACLServlet.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservice/servlet/UserACLServlet.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservice/servlet/UserACLServlet.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservice/servlet/UserACLServlet.java Fri May 27 11:50:58 2011
@@ -171,7 +171,7 @@ public class UserACLServlet extends Http
       i = 0;
 
       // Ask all the registered authorities for their ACLs, and merge the final list together.
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       // Set response mime type
       response.setContentType("text/plain; charset=ISO8859-1");
       ServletOutputStream out = response.getOutputStream();

Modified: incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/cachemanager/CacheManager.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/cachemanager/CacheManager.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/cachemanager/CacheManager.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/cachemanager/CacheManager.java Fri May 27 11:50:58 2011
@@ -202,7 +202,7 @@ public class CacheManager implements ICa
   {
     if (Logging.cache.isDebugEnabled())
     {
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       if (locateObjectDescriptions != null)
       {
         sb.append("{");
@@ -219,7 +219,7 @@ public class CacheManager implements ICa
       else
         sb.append("NULL");
 
-      StringBuffer inv = new StringBuffer();
+      StringBuilder inv = new StringBuilder();
       if (invalidateKeys != null)
       {
         inv.append("{");
@@ -525,7 +525,7 @@ public class CacheManager implements ICa
     if (Logging.cache.isDebugEnabled())
     {
       StringSet ks = objectDescription.getObjectKeys();
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       if (ks != null)
       {
         sb.append("{");

Modified: incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/common/XMLDoc.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/common/XMLDoc.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/common/XMLDoc.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/common/XMLDoc.java Fri May 27 11:50:58 2011
@@ -73,7 +73,7 @@ public class XMLDoc
   {
 
     Object element = currentRoot;
-    StringBuffer bf = new StringBuffer();
+    StringBuilder bf = new StringBuilder();
     boolean bWild = false;
     ArrayList working = new ArrayList();
 
@@ -288,11 +288,11 @@ public class XMLDoc
     }
   }
 
-  /** Construct a new document tree from a stringbuffer form of
+  /** Construct a new document tree from a StringBuilder form of
   * an xml document
   * @param data xml to parse
   */
-  public XMLDoc(StringBuffer data)
+  public XMLDoc(StringBuilder data)
     throws ManifoldCFException
   {
     try
@@ -409,7 +409,7 @@ public class XMLDoc
   public final String getData(Object obj)
   {
     Node enode = (Node)obj;
-    StringBuffer data = new StringBuffer();
+    StringBuilder data = new StringBuilder();
     NodeList cdata = enode.getChildNodes();
 
     // expect just 1

Modified: incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceDerby.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceDerby.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceDerby.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceDerby.java Fri May 27 11:50:58 2011
@@ -181,12 +181,12 @@ public class DBInterfaceDerby extends Da
   {
     ArrayList paramArray = new ArrayList();
 
-    StringBuffer bf = new StringBuffer();
+    StringBuilder bf = new StringBuilder();
     bf.append("INSERT INTO ");
     bf.append(tableName);
     bf.append(" (") ;
 
-    StringBuffer values = new StringBuffer(" VALUES (");
+    StringBuilder values = new StringBuilder(" VALUES (");
 
     // loop for cols
     Iterator it = parameterMap.entrySet().iterator();
@@ -234,7 +234,7 @@ public class DBInterfaceDerby extends Da
   {
     ArrayList paramArray = new ArrayList();
 
-    StringBuffer bf = new StringBuffer();
+    StringBuilder bf = new StringBuilder();
     bf.append("UPDATE ");
     bf.append(tableName);
     bf.append(" SET ") ;
@@ -297,7 +297,7 @@ public class DBInterfaceDerby extends Da
   public void performDelete(String tableName, String whereClause, ArrayList whereParameters, StringSet invalidateKeys)
     throws ManifoldCFException
   {
-    StringBuffer bf = new StringBuffer();
+    StringBuilder bf = new StringBuilder();
     bf.append("DELETE FROM ");
     bf.append(tableName);
     if (whereClause != null)
@@ -324,7 +324,7 @@ public class DBInterfaceDerby extends Da
     throws ManifoldCFException
   {
     int constraintNumber = 0;
-    StringBuffer queryBuffer = new StringBuffer("CREATE TABLE ");
+    StringBuilder queryBuffer = new StringBuilder("CREATE TABLE ");
     queryBuffer.append(tableName);
     queryBuffer.append('(');
     Iterator iter = columnMap.keySet().iterator();
@@ -345,7 +345,7 @@ public class DBInterfaceDerby extends Da
 
   }
 
-  protected void appendDescription(StringBuffer queryBuffer, String columnName, ColumnDescription cd, boolean forceNull)
+  protected void appendDescription(StringBuilder queryBuffer, String columnName, ColumnDescription cd, boolean forceNull)
     throws ManifoldCFException
   {
     queryBuffer.append(columnName);
@@ -412,7 +412,7 @@ public class DBInterfaceDerby extends Da
           // Create a new column we can copy the data into.
           performModification("RENAME COLUMN "+tableName+"."+columnName+" TO "+renameColumn,null,invalidateKeys);
           // Create new column
-          StringBuffer sb = new StringBuffer();
+          StringBuilder sb = new StringBuilder();
           appendDescription(sb,columnName,cd,true);
           performModification("ALTER TABLE "+tableName+" ADD "+sb.toString(),null,invalidateKeys);
           // Copy old data to new
@@ -433,7 +433,7 @@ public class DBInterfaceDerby extends Da
         {
           String columnName = (String)iter.next();
           ColumnDescription cd = (ColumnDescription)columnMap.get(columnName);
-          StringBuffer sb = new StringBuffer();
+          StringBuilder sb = new StringBuilder();
           appendDescription(sb,columnName,cd,false);
           performModification("ALTER TABLE "+tableName+" ADD "+sb.toString(),null,invalidateKeys);
         }
@@ -502,7 +502,7 @@ public class DBInterfaceDerby extends Da
     if (indexName == null)
       // Build an index name
       indexName = "I"+IDFactory.make(context);
-    StringBuffer queryBuffer = new StringBuffer("CREATE ");
+    StringBuilder queryBuffer = new StringBuilder("CREATE ");
     if (description.getIsUnique())
       queryBuffer.append("UNIQUE ");
     queryBuffer.append("INDEX ");
@@ -1061,7 +1061,7 @@ public class DBInterfaceDerby extends Da
   */
   public String constructOffsetLimitClause(int offset, int limit)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     if (offset != 0)
       sb.append("OFFSET ").append(Integer.toString(offset)).append(" ROWS");
     if (limit != -1)
@@ -1108,7 +1108,7 @@ public class DBInterfaceDerby extends Da
     if (baseParameters != null)
       outputParameters.addAll(baseParameters);
 
-    StringBuffer sb = new StringBuffer("SELECT ");
+    StringBuilder sb = new StringBuilder("SELECT ");
     boolean needComma = false;
     Iterator iter = otherFields.keySet().iterator();
     while (iter.hasNext())

Modified: incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceHSQLDB.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceHSQLDB.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceHSQLDB.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceHSQLDB.java Fri May 27 11:50:58 2011
@@ -135,12 +135,12 @@ public class DBInterfaceHSQLDB extends D
   {
     ArrayList paramArray = new ArrayList();
 
-    StringBuffer bf = new StringBuffer();
+    StringBuilder bf = new StringBuilder();
     bf.append("INSERT INTO ");
     bf.append(tableName);
     bf.append(" (") ;
 
-    StringBuffer values = new StringBuffer(" VALUES (");
+    StringBuilder values = new StringBuilder(" VALUES (");
 
     // loop for cols
     Iterator it = parameterMap.entrySet().iterator();
@@ -188,7 +188,7 @@ public class DBInterfaceHSQLDB extends D
   {
     ArrayList paramArray = new ArrayList();
 
-    StringBuffer bf = new StringBuffer();
+    StringBuilder bf = new StringBuilder();
     bf.append("UPDATE ");
     bf.append(tableName);
     bf.append(" SET ") ;
@@ -251,7 +251,7 @@ public class DBInterfaceHSQLDB extends D
   public void performDelete(String tableName, String whereClause, ArrayList whereParameters, StringSet invalidateKeys)
     throws ManifoldCFException
   {
-    StringBuffer bf = new StringBuffer();
+    StringBuilder bf = new StringBuilder();
     bf.append("DELETE FROM ");
     bf.append(tableName);
     if (whereClause != null)
@@ -277,7 +277,7 @@ public class DBInterfaceHSQLDB extends D
   public void performCreate(String tableName, Map columnMap, StringSet invalidateKeys)
     throws ManifoldCFException
   {
-    StringBuffer queryBuffer = new StringBuffer("CREATE TABLE ");
+    StringBuilder queryBuffer = new StringBuilder("CREATE TABLE ");
     queryBuffer.append(tableName);
     queryBuffer.append('(');
     Iterator iter = columnMap.keySet().iterator();
@@ -298,7 +298,7 @@ public class DBInterfaceHSQLDB extends D
 
   }
 
-  protected static void appendDescription(StringBuffer queryBuffer, String columnName, ColumnDescription cd, boolean forceNull)
+  protected static void appendDescription(StringBuilder queryBuffer, String columnName, ColumnDescription cd, boolean forceNull)
   {
     queryBuffer.append(columnName);
     queryBuffer.append(' ');
@@ -356,18 +356,18 @@ public class DBInterfaceHSQLDB extends D
         Iterator iter = columnModifyMap.keySet().iterator();
         while (iter.hasNext())
         {
-          StringBuffer sb;
+          StringBuilder sb;
           String columnName = (String)iter.next();
           ColumnDescription cd = (ColumnDescription)columnModifyMap.get(columnName);
           String renameColumn = "__temp__";
-          sb = new StringBuffer();
+          sb = new StringBuilder();
           appendDescription(sb,renameColumn,cd,true);
           // Rename current column.  This too involves a copy.
           performModification("ALTER TABLE "+tableName+" ADD "+sb.toString(),null,invalidateKeys);
           performModification("UPDATE "+tableName+" SET "+renameColumn+"="+columnName,null,invalidateKeys);
           performModification("ALTER TABLE "+tableName+" DROP "+columnName+" RESTRICT",null,invalidateKeys);
           // Create new column
-          sb = new StringBuffer();
+          sb = new StringBuilder();
           appendDescription(sb,columnName,cd,true);
           performModification("ALTER TABLE "+tableName+" ADD "+sb.toString(),null,invalidateKeys);
           // Copy old data to new
@@ -388,7 +388,7 @@ public class DBInterfaceHSQLDB extends D
         {
           String columnName = (String)iter.next();
           ColumnDescription cd = (ColumnDescription)columnMap.get(columnName);
-          StringBuffer sb = new StringBuffer();
+          StringBuilder sb = new StringBuilder();
           appendDescription(sb,columnName,cd,false);
           performModification("ALTER TABLE "+tableName+" ADD "+sb.toString(),null,invalidateKeys);
         }
@@ -457,7 +457,7 @@ public class DBInterfaceHSQLDB extends D
     if (indexName == null)
       // Build an index name
       indexName = "I"+IDFactory.make(context);
-    StringBuffer queryBuffer = new StringBuffer("CREATE ");
+    StringBuilder queryBuffer = new StringBuilder("CREATE ");
     if (description.getIsUnique())
       queryBuffer.append("UNIQUE ");
     queryBuffer.append("INDEX ");
@@ -628,7 +628,7 @@ public class DBInterfaceHSQLDB extends D
   public Map getTableSchema(String tableName, StringSet cacheKeys, String queryClass)
     throws ManifoldCFException
   {
-    StringBuffer query = new StringBuffer();
+    StringBuilder query = new StringBuilder();
     ArrayList list = new ArrayList();
     list.add(tableName.toUpperCase());
     query.append("SELECT column_name, is_nullable, data_type, character_maximum_length ")
@@ -637,7 +637,7 @@ public class DBInterfaceHSQLDB extends D
     if (set.getRowCount() == 0)
       return null;
 
-    query = new StringBuffer();
+    query = new StringBuilder();
     query.append("SELECT column_name ")
       .append("FROM INFORMATION_SCHEMA.SYSTEM_PRIMARYKEYS WHERE table_schem='PUBLIC' AND table_name=?");
     IResultSet primarySet = performQuery(query.toString(),list,cacheKeys,queryClass);
@@ -863,7 +863,7 @@ public class DBInterfaceHSQLDB extends D
   */
   public String constructOffsetLimitClause(int offset, int limit)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     if (offset != 0)
       sb.append("OFFSET ").append(Integer.toString(offset));
     if (limit != -1)
@@ -910,7 +910,7 @@ public class DBInterfaceHSQLDB extends D
     if (baseParameters != null)
       outputParameters.addAll(baseParameters);
 
-    StringBuffer sb = new StringBuffer("SELECT ");
+    StringBuilder sb = new StringBuilder("SELECT ");
     boolean needComma = false;
     Iterator iter = otherFields.keySet().iterator();
     while (iter.hasNext())

Modified: incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfaceMySQL.java Fri May 27 11:50:58 2011
@@ -84,12 +84,12 @@ public class DBInterfaceMySQL extends Da
   {
     ArrayList paramArray = new ArrayList();
 
-    StringBuffer bf = new StringBuffer();
+    StringBuilder bf = new StringBuilder();
     bf.append("INSERT INTO ");
     bf.append(tableName);
     bf.append(" (") ;
 
-    StringBuffer values = new StringBuffer(" VALUES (");
+    StringBuilder values = new StringBuilder(" VALUES (");
 
     // loop for cols
     Iterator it = parameterMap.entrySet().iterator();
@@ -137,7 +137,7 @@ public class DBInterfaceMySQL extends Da
   {
     ArrayList paramArray = new ArrayList();
 
-    StringBuffer bf = new StringBuffer();
+    StringBuilder bf = new StringBuilder();
     bf.append("UPDATE ");
     bf.append(tableName);
     bf.append(" SET ") ;
@@ -200,7 +200,7 @@ public class DBInterfaceMySQL extends Da
   public void performDelete(String tableName, String whereClause, ArrayList whereParameters, StringSet invalidateKeys)
     throws ManifoldCFException
   {
-    StringBuffer bf = new StringBuffer();
+    StringBuilder bf = new StringBuilder();
     bf.append("DELETE FROM ");
     bf.append(tableName);
     if (whereClause != null)
@@ -226,7 +226,7 @@ public class DBInterfaceMySQL extends Da
   public void performCreate(String tableName, Map columnMap, StringSet invalidateKeys)
     throws ManifoldCFException
   {
-    StringBuffer queryBuffer = new StringBuffer("CREATE TABLE ");
+    StringBuilder queryBuffer = new StringBuilder("CREATE TABLE ");
     queryBuffer.append(tableName);
     queryBuffer.append('(');
     Iterator iter = columnMap.keySet().iterator();
@@ -318,7 +318,7 @@ public class DBInterfaceMySQL extends Da
     if (indexName == null)
       // Build an index name
       indexName = "I"+IDFactory.make(context);
-    StringBuffer queryBuffer = new StringBuffer("CREATE ");
+    StringBuilder queryBuffer = new StringBuilder("CREATE ");
     if (description.getIsUnique())
       queryBuffer.append("UNIQUE ");
     queryBuffer.append("INDEX ");
@@ -575,7 +575,7 @@ public class DBInterfaceMySQL extends Da
   */
   public String constructOffsetLimitClause(int offset, int limit)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     if (offset != 0)
       sb.append("OFFSET ").append(Integer.toString(offset));
     if (limit != -1)
@@ -607,7 +607,7 @@ public class DBInterfaceMySQL extends Da
     if (baseParameters != null)
       outputParameters.addAll(baseParameters);
 
-    StringBuffer sb = new StringBuffer("SELECT ");
+    StringBuilder sb = new StringBuilder("SELECT ");
     boolean needComma = false;
     Iterator iter = otherFields.keySet().iterator();
     while (iter.hasNext())

Modified: incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfacePostgreSQL.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfacePostgreSQL.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfacePostgreSQL.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/DBInterfacePostgreSQL.java Fri May 27 11:50:58 2011
@@ -151,12 +151,12 @@ public class DBInterfacePostgreSQL exten
   {
     ArrayList paramArray = new ArrayList();
 
-    StringBuffer bf = new StringBuffer();
+    StringBuilder bf = new StringBuilder();
     bf.append("INSERT INTO ");
     bf.append(tableName);
     bf.append(" (") ;
 
-    StringBuffer values = new StringBuffer(" VALUES (");
+    StringBuilder values = new StringBuilder(" VALUES (");
 
     // loop for cols
     Iterator it = parameterMap.entrySet().iterator();
@@ -204,7 +204,7 @@ public class DBInterfacePostgreSQL exten
   {
     ArrayList paramArray = new ArrayList();
 
-    StringBuffer bf = new StringBuffer();
+    StringBuilder bf = new StringBuilder();
     bf.append("UPDATE ");
     bf.append(tableName);
     bf.append(" SET ") ;
@@ -267,7 +267,7 @@ public class DBInterfacePostgreSQL exten
   public void performDelete(String tableName, String whereClause, ArrayList whereParameters, StringSet invalidateKeys)
     throws ManifoldCFException
   {
-    StringBuffer bf = new StringBuffer();
+    StringBuilder bf = new StringBuilder();
     bf.append("DELETE FROM ");
     bf.append(tableName);
     if (whereClause != null)
@@ -293,7 +293,7 @@ public class DBInterfacePostgreSQL exten
   public void performCreate(String tableName, Map columnMap, StringSet invalidateKeys)
     throws ManifoldCFException
   {
-    StringBuffer queryBuffer = new StringBuffer("CREATE TABLE ");
+    StringBuilder queryBuffer = new StringBuilder("CREATE TABLE ");
     queryBuffer.append(tableName);
     queryBuffer.append('(');
     Iterator iter = columnMap.keySet().iterator();
@@ -314,7 +314,7 @@ public class DBInterfacePostgreSQL exten
 
   }
 
-  protected static void appendDescription(StringBuffer queryBuffer, String columnName, ColumnDescription cd, boolean forceNull)
+  protected static void appendDescription(StringBuilder queryBuffer, String columnName, ColumnDescription cd, boolean forceNull)
   {
     queryBuffer.append(columnName);
     queryBuffer.append(' ');
@@ -378,7 +378,7 @@ public class DBInterfacePostgreSQL exten
           // Rename current column
           performModification("ALTER TABLE ONLY "+tableName+" RENAME "+columnName+" TO "+renameColumn,null,invalidateKeys);
           // Create new column
-          StringBuffer sb = new StringBuffer();
+          StringBuilder sb = new StringBuilder();
           appendDescription(sb,columnName,cd,true);
           performModification("ALTER TABLE ONLY "+tableName+" ADD "+sb.toString(),null,invalidateKeys);
           // Copy old data to new
@@ -399,7 +399,7 @@ public class DBInterfacePostgreSQL exten
         {
           String columnName = (String)iter.next();
           ColumnDescription cd = (ColumnDescription)columnMap.get(columnName);
-          StringBuffer sb = new StringBuffer();
+          StringBuilder sb = new StringBuilder();
           appendDescription(sb,columnName,cd,false);
           performModification("ALTER TABLE ONLY "+tableName+" ADD "+sb.toString(),null,invalidateKeys);
         }
@@ -470,7 +470,7 @@ public class DBInterfacePostgreSQL exten
     if (indexName == null)
       // Build an index name
       indexName = "I"+IDFactory.make(context);
-    StringBuffer queryBuffer = new StringBuffer("CREATE ");
+    StringBuilder queryBuffer = new StringBuilder("CREATE ");
     if (description.getIsUnique())
       queryBuffer.append("UNIQUE ");
     queryBuffer.append("INDEX ");
@@ -532,7 +532,7 @@ public class DBInterfacePostgreSQL exten
       if (set.getRowCount() == 0)
       {
         // We have to quote the password.  Due to a postgresql bug, parameters don't work for this field.
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         sb.append("'");
         int i = 0;
         while (i < password.length())
@@ -652,7 +652,7 @@ public class DBInterfacePostgreSQL exten
   public Map getTableSchema(String tableName, StringSet cacheKeys, String queryClass)
     throws ManifoldCFException
   {
-    StringBuffer query = new StringBuffer();
+    StringBuilder query = new StringBuilder();
     ArrayList list = new ArrayList();
     query.append("SELECT pg_attribute.attname AS \"Field\",");
     query.append("CASE pg_type.typname WHEN 'int2' THEN 'smallint' WHEN 'int4' THEN 'int'");
@@ -885,7 +885,7 @@ public class DBInterfacePostgreSQL exten
   */
   public String constructSubstringClause(String column, String regularExpression, boolean caseInsensitive)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     sb.append("SUBSTRING(");
     if (caseInsensitive)
       sb.append("LOWER(").append(column).append(")");
@@ -908,7 +908,7 @@ public class DBInterfacePostgreSQL exten
   */
   public String constructOffsetLimitClause(int offset, int limit)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     if (offset != 0)
       sb.append("OFFSET ").append(Integer.toString(offset));
     if (limit != -1)
@@ -938,7 +938,7 @@ public class DBInterfacePostgreSQL exten
     if (baseParameters != null)
       outputParameters.addAll(baseParameters);
 
-    StringBuffer sb = new StringBuffer("SELECT DISTINCT ON(");
+    StringBuilder sb = new StringBuilder("SELECT DISTINCT ON(");
     int i = 0;
     while (i < distinctFields.length)
     {

Modified: incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/QueryDescription.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/QueryDescription.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/QueryDescription.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/database/QueryDescription.java Fri May 27 11:50:58 2011
@@ -186,7 +186,7 @@ public class QueryDescription extends or
   {
     if (criticalSectionName == null)
     {
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       if (databaseName != null)
         sb.append(databaseName);
       sb.append("-").append(getClass().getName()).append("-");

Modified: incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/ResultSpecification.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/ResultSpecification.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/ResultSpecification.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/ResultSpecification.java Fri May 27 11:50:58 2011
@@ -87,7 +87,7 @@ public class ResultSpecification
   /** Convert to a unique string */
   public String toString()
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     String[] keys = new String[columnSpecifications.size()];
     Iterator iter = columnSpecifications.keySet().iterator();
     int i = 0;

Modified: incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/StringSet.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/StringSet.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/StringSet.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/interfaces/StringSet.java Fri May 27 11:50:58 2011
@@ -183,7 +183,7 @@ public class StringSet
       // Get as array first
       String[] array = getArray(null);
       java.util.Arrays.sort(array);
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       int i = 0;
       while (i < array.length)
       {

Modified: incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/lockmanager/LockObject.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/lockmanager/LockObject.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/lockmanager/LockObject.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/lockmanager/LockObject.java Fri May 27 11:50:58 2011
@@ -658,7 +658,7 @@ public class LockObject
         BufferedReader x = new BufferedReader(fr);
         try
         {
-          StringBuffer sb = new StringBuffer();
+          StringBuilder sb = new StringBuilder();
           while (true)
           {
             int rval = x.read();

Modified: incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/system/ManifoldCF.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/system/ManifoldCF.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/system/ManifoldCF.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/core/src/main/java/org/apache/manifoldcf/core/system/ManifoldCF.java Fri May 27 11:50:58 2011
@@ -386,7 +386,7 @@ public class ManifoldCF
   */
   public static String safeFileName(String value)
   {
-    StringBuffer rval = new StringBuffer();
+    StringBuilder rval = new StringBuilder();
     int i = 0;
     while (i < value.length())
     {
@@ -488,7 +488,7 @@ public class ManifoldCF
     try
     {
       byte[] encryptedBytes = digest.digest();
-      StringBuffer rval = new StringBuffer();
+      StringBuilder rval = new StringBuilder();
       int i = 0;
       while (i < encryptedBytes.length)
       {
@@ -545,7 +545,7 @@ public class ManifoldCF
         array[i++] = (byte)(x ^ 0x59);
       }
       // Now, convert to hex
-      StringBuffer rval = new StringBuffer();
+      StringBuilder rval = new StringBuilder();
       i = 0;
       while (i < array.length)
       {
@@ -723,7 +723,7 @@ public class ManifoldCF
           break;
         currentIndex++;
       }
-      StringBuffer argBuffer = new StringBuffer();
+      StringBuilder argBuffer = new StringBuilder();
       boolean isQuoted = false;
       while (currentIndex < configChangeSignalCommand.length())
       {
@@ -817,7 +817,7 @@ public class ManifoldCF
               BufferedReader br = new BufferedReader(r);
               try
               {
-                StringBuffer sb = new StringBuffer();
+                StringBuilder sb = new StringBuilder();
                 while (true)
                 {
                   String value = br.readLine();

Modified: incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/CheckAll.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/CheckAll.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/CheckAll.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/CheckAll.java Fri May 27 11:50:58 2011
@@ -108,7 +108,7 @@ public class CheckAll
   /** Encode a string so that it doesn't have control characters, newlines, or colons in it */
   protected static String encode(String input)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     int i = 0;
     while (i < input.length())
     {

Modified: incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/authority/AuthorityConnectionManager.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/authority/AuthorityConnectionManager.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/authority/AuthorityConnectionManager.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/authorities/authority/AuthorityConnectionManager.java Fri May 27 11:50:58 2011
@@ -446,7 +446,7 @@ public class AuthorityConnectionManager 
     try
     {
       i = 0;
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       ArrayList params = new ArrayList();
       int j = 0;
       int maxIn = getMaxInClause();

Modified: incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/AddScheduledTime.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/AddScheduledTime.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/AddScheduledTime.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/AddScheduledTime.java Fri May 27 11:50:58 2011
@@ -99,7 +99,7 @@ public class AddScheduledTime
                 if (list.length() == 0)
                         return null;
 
-                StringBuffer sb = new StringBuffer();
+                StringBuilder sb = new StringBuilder();
                 int index = 0;
                 while (true)
                 {
@@ -143,7 +143,7 @@ public class AddScheduledTime
                 if (list.length() == 0)
                         return null;
 
-                StringBuffer sb = new StringBuffer();
+                StringBuilder sb = new StringBuilder();
                 int index = 0;
                 while (true)
                 {
@@ -200,7 +200,7 @@ public class AddScheduledTime
                 if (list.length() == 0)
                         return null;
 
-                StringBuffer sb = new StringBuffer();
+                StringBuilder sb = new StringBuilder();
                 int index = 0;
                 while (true)
                 {
@@ -232,7 +232,7 @@ public class AddScheduledTime
                 if (list.length() == 0)
                         return null;
 
-                StringBuffer sb = new StringBuffer();
+                StringBuilder sb = new StringBuilder();
                 int index = 0;
                 while (true)
                 {

Modified: incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/GetJobSchedule.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/GetJobSchedule.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/GetJobSchedule.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/GetJobSchedule.java Fri May 27 11:50:58 2011
@@ -85,7 +85,7 @@ public class GetJobSchedule
   {
     if (ev == null)
       return "any";
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     Iterator iter = ev.getValues();
     boolean first = true;
     while (iter.hasNext())
@@ -110,7 +110,7 @@ public class GetJobSchedule
 
   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/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/ListJobStatuses.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/ListJobStatuses.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/ListJobStatuses.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/ListJobStatuses.java Fri May 27 11:50:58 2011
@@ -115,7 +115,7 @@ public class ListJobStatuses
 
   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/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/ListJobs.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/ListJobs.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/ListJobs.java (original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/ListJobs.java Fri May 27 11:50:58 2011
@@ -133,7 +133,7 @@ public class ListJobs
 
   protected static String commaEscape(String input)
   {
-    StringBuffer output = new StringBuffer();
+    StringBuilder output = new StringBuilder();
     int i = 0;
     while (i < input.length())
     {



Mime
View raw message