manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1128269 [3/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/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunDocumentStatus.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunDocumentStatus.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunDocumentStatus.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunDocumentStatus.java
Fri May 27 11:50:58 2011
@@ -113,7 +113,7 @@ public class RunDocumentStatus
 
   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/RunMaxActivityHistory.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunMaxActivityHistory.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunMaxActivityHistory.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunMaxActivityHistory.java
Fri May 27 11:50:58 2011
@@ -105,7 +105,7 @@ public class RunMaxActivityHistory
 
   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/RunMaxBandwidthHistory.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunMaxBandwidthHistory.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunMaxBandwidthHistory.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunMaxBandwidthHistory.java
Fri May 27 11:50:58 2011
@@ -105,7 +105,7 @@ public class RunMaxBandwidthHistory
 
   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/RunQueueStatus.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunQueueStatus.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunQueueStatus.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunQueueStatus.java
Fri May 27 11:50:58 2011
@@ -115,7 +115,7 @@ public class RunQueueStatus
 
   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/RunSimpleHistory.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunSimpleHistory.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunSimpleHistory.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/RunSimpleHistory.java
Fri May 27 11:50:58 2011
@@ -110,7 +110,7 @@ public class RunSimpleHistory
 
   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/interfaces/QueueTracker.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/interfaces/QueueTracker.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/interfaces/QueueTracker.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/interfaces/QueueTracker.java
Fri May 27 11:50:58 2011
@@ -126,7 +126,7 @@ public class QueueTracker
   {
     if (Logging.scheduling.isDebugEnabled())
     {
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       int j = 0;
       while (j < binNames.length)
       {
@@ -231,7 +231,7 @@ public class QueueTracker
   {
     if (Logging.scheduling.isDebugEnabled())
     {
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       int j = 0;
       while (j < binNames.length)
       {
@@ -330,7 +330,7 @@ public class QueueTracker
   {
     if (Logging.scheduling.isDebugEnabled())
     {
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       int j = 0;
       while (j < binNames.length)
       {
@@ -393,7 +393,7 @@ public class QueueTracker
 
     if (false && Logging.scheduling.isDebugEnabled())
     {
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       int j = 0;
       while (j < binNames.length)
       {
@@ -594,7 +594,7 @@ public class QueueTracker
 
       if (Logging.scheduling.isDebugEnabled())
       {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         int k = 0;
         while (k < binNames.length)
         {

Modified: incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/interfaces/SortOrder.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/interfaces/SortOrder.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/interfaces/SortOrder.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/interfaces/SortOrder.java
Fri May 27 11:50:58 2011
@@ -47,7 +47,7 @@ public class SortOrder
     throws ManifoldCFException
   {
     ParseBuffer pb = new ParseBuffer(rep);
-    StringBuffer numBuffer = new StringBuffer();
+    StringBuilder numBuffer = new StringBuilder();
     while (true)
     {
       int x = pb.peekCharAt();
@@ -80,7 +80,7 @@ public class SortOrder
   */
   public String toString()
   {
-    StringBuffer output = new StringBuffer();
+    StringBuilder output = new StringBuilder();
     output.append(Integer.toString(sortList.size()));
     output.append(":");
     int i = 0;
@@ -203,7 +203,7 @@ public class SortOrder
       else
         throw new ManifoldCFException("Bad direction");
       pb.next();
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       while (true)
       {
         x = pb.peekCharAt();
@@ -230,7 +230,7 @@ public class SortOrder
 
     public String toString()
     {
-      StringBuffer output = new StringBuffer();
+      StringBuilder output = new StringBuilder();
       if (direction == SORT_ASCENDING)
         output.append("+");
       else

Modified: incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/Carrydown.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/Carrydown.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/Carrydown.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/Carrydown.java
Fri May 27 11:50:58 2011
@@ -244,7 +244,7 @@ public class Carrydown extends org.apach
     HashMap presentMap = new HashMap();
 
     int maxClause = getMaxOrClause();
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     ArrayList list = new ArrayList();
     int i = 0;
     int k = 0;
@@ -359,7 +359,7 @@ public class Carrydown extends org.apach
       }
       else
       {
-        sb = new StringBuffer();
+        sb = new StringBuilder();
         sb.append("WHERE ").append(jobIDField).append("=? AND ")
           .append(dataNameField).append("=? AND ")
           .append(parentIDHashField).append("=? AND ").append(childIDHashField).append("=?
AND ");
@@ -426,7 +426,7 @@ public class Carrydown extends org.apach
     try
     {
       int maxClause = getMaxOrClause();
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       ArrayList list = new ArrayList();
       int i = 0;
       int k = 0;
@@ -472,14 +472,14 @@ public class Carrydown extends org.apach
     throws ManifoldCFException
   {
     // Delete
-    StringBuffer sb = new StringBuffer("WHERE (");
+    StringBuilder sb = new StringBuilder("WHERE (");
     sb.append(query).append(") AND (").append(newField).append("=?)");
     ArrayList newList = (ArrayList)list.clone();
     newList.add(statusToString(ISNEW_BASE));
     performDelete(sb.toString(),newList,null);
 
     // Restore new values
-    sb = new StringBuffer("WHERE (");
+    sb = new StringBuilder("WHERE (");
     sb.append(query).append(") AND (").append(newField).append("=? OR ").append(newField).append("=?)");
     list.add(statusToString(ISNEW_EXISTING));
     list.add(statusToString(ISNEW_NEW));
@@ -498,8 +498,8 @@ public class Carrydown extends org.apach
     try
     {
       int maxClause = getMaxOrClause();
-      StringBuffer sb = new StringBuffer();
-      StringBuffer sb2 = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
+      StringBuilder sb2 = new StringBuilder();
       ArrayList list = new ArrayList();
       ArrayList list2 = new ArrayList();
       int i = 0;

Modified: incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/HopCount.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/HopCount.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/HopCount.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/HopCount.java
Fri May 27 11:50:58 2011
@@ -451,7 +451,7 @@ public class HopCount extends org.apache
         else
         {
           ArrayList list = new ArrayList();
-          StringBuffer sb = new StringBuffer("SELECT ");
+          StringBuilder sb = new StringBuilder("SELECT ");
           sb.append(idField).append(",").append(distanceField).append(",").append(linkTypeField)
             .append(" FROM ").append(getTableName()).append(" WHERE ");
           int i = 0;
@@ -609,7 +609,7 @@ public class HopCount extends org.apache
     throws ManifoldCFException
   {
     // No transaction, since we can happily interpret whatever comes back.
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     ArrayList list = new ArrayList();
 
     int[] rval = new int[parentIdentifierHashes.length];
@@ -825,7 +825,7 @@ public class HopCount extends org.apache
       // as ORed together match tuples.  I do 25 at a pop, which is arbitrary.
 
       int maxClause = getMaxOrClause();
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       ArrayList list = new ArrayList();
       int i = 0;
       int k = 0;
@@ -939,7 +939,7 @@ public class HopCount extends org.apache
       // but postgresql is stupid and won't use the index that way.  So do this instead:
       // UPDATE hopcount SET markfordeath='Q' WHERE (jobID=? AND parentid=?) OR (jobid=?
AND parentid=?)...
 
-      sb = new StringBuffer();
+      sb = new StringBuilder();
       list = new ArrayList();
       k = 0;
       i = 0;
@@ -1128,7 +1128,7 @@ public class HopCount extends org.apache
 
         int maxClause = getMaxOrClause();
         ArrayList list = new ArrayList();
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         int i = 0;
         int k = 0;
         while (i < sourceDocumentHashes.length)
@@ -1164,7 +1164,7 @@ public class HopCount extends org.apache
         //      t0.parentidhash=t1.parentidhash and t0.childidhash=t1.childidhash and t0.linktype=t1.linktype
and
         //      t0.parentid=t1.parentid and t0.childid=t1.childid)
 
-        StringBuffer sb = new StringBuffer("WHERE ");
+        StringBuilder sb = new StringBuilder("WHERE ");
         ArrayList list = new ArrayList();
         list.add(jobID);
         list.add(jobID);
@@ -1232,7 +1232,7 @@ public class HopCount extends org.apache
   {
     ArrayList thisList = new ArrayList();
     thisList.addAll(list);
-    StringBuffer sb = new StringBuffer("WHERE ");
+    StringBuilder sb = new StringBuilder("WHERE ");
     sb.append(idField).append(" IN(SELECT ").append(deleteDepsManager.ownerIDField).append("
FROM ")
       .append(deleteDepsManager.getTableName()).append(" t0 WHERE (").append(query).append(")
AND EXISTS(SELECT 'x' FROM ")
       .append(intrinsicLinkManager.getTableName()).append(" t1 WHERE t1.")
@@ -1284,7 +1284,7 @@ public class HopCount extends org.apache
       // for the root).
 
       ArrayList list = new ArrayList();
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
 
       DocumentNode[] rval = new DocumentNode[unansweredQuestions.length];
 
@@ -2870,7 +2870,7 @@ public class HopCount extends org.apache
       HashMap referenceMap = new HashMap();
 
       int maxClause = getMaxOrClause();
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       ArrayList list = new ArrayList();
       k = 0;
       Iterator iter = parentMap.keySet().iterator();

Modified: incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/HopDeleteDeps.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/HopDeleteDeps.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/HopDeleteDeps.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/HopDeleteDeps.java
Fri May 27 11:50:58 2011
@@ -178,7 +178,7 @@ public class HopDeleteDeps extends org.a
   public void deleteOwnerRows(Long[] ownerIDs)
     throws ManifoldCFException
   {
-    StringBuffer sb = new StringBuffer("WHERE ");
+    StringBuilder sb = new StringBuilder("WHERE ");
     sb.append(ownerIDField).append(" IN(");
     ArrayList list = new ArrayList();
     int i = 0;
@@ -222,7 +222,7 @@ public class HopDeleteDeps extends org.a
     throws ManifoldCFException
   {
     ArrayList list = new ArrayList();
-    StringBuffer sb = new StringBuffer("WHERE ");
+    StringBuilder sb = new StringBuilder("WHERE ");
     sb.append(ownerIDField).append("=? AND ");
     list.add(ownerID);
     if (dd.getLinkType().length() > 0)

Modified: incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/IntrinsicLink.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/IntrinsicLink.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/IntrinsicLink.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/IntrinsicLink.java
Fri May 27 11:50:58 2011
@@ -205,7 +205,7 @@ public class IntrinsicLink extends org.a
       //performLock();
       HashMap duplicateRemoval = new HashMap();
       int maxClause = getMaxOrClause();
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       ArrayList list = new ArrayList();
       int i = 0;
       int k = 0;
@@ -334,7 +334,7 @@ public class IntrinsicLink extends org.a
       if (sourceDocumentIDHashes != null)
       {
         int maxClause = getMaxOrClause();
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         ArrayList list = new ArrayList();
         int i = 0;
         int k = 0;
@@ -366,7 +366,7 @@ public class IntrinsicLink extends org.a
         ArrayList list = new ArrayList();
         list.add(jobID);
         list.addAll(sourceTableParams);
-        StringBuffer sb = new StringBuffer("WHERE EXISTS(SELECT 'x' FROM ");
+        StringBuilder sb = new StringBuilder("WHERE EXISTS(SELECT 'x' FROM ");
         sb.append(sourceTableName).append(" WHERE ").append(sourceTableJobColumn).append("=?
AND ")
           .append(sourceTableIDColumn).append("=").append(getTableName()).append(".").append(childIDHashField)
           .append(" AND ").append(sourceTableCriteria).append(")");
@@ -397,7 +397,7 @@ public class IntrinsicLink extends org.a
   {
     ArrayList thisList = new ArrayList();
     thisList.addAll(list);
-    StringBuffer sb = new StringBuffer("WHERE (");
+    StringBuilder sb = new StringBuilder("WHERE (");
     sb.append(query).append(")");
     if (commonNewExpression != null)
     {
@@ -416,7 +416,7 @@ public class IntrinsicLink extends org.a
     try
     {
       int maxClause = getMaxOrClause();
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       ArrayList list = new ArrayList();
       int i = 0;
       int k = 0;
@@ -462,7 +462,7 @@ public class IntrinsicLink extends org.a
   protected void performRestoreLinks(String query, ArrayList list)
     throws ManifoldCFException
   {
-    StringBuffer sb = new StringBuffer("WHERE (");
+    StringBuilder sb = new StringBuilder("WHERE (");
     sb.append(query).append(") AND (").append(newField).append("=? OR ").append(newField).append("=?)");
     list.add(statusToString(LINKSTATUS_EXISTING));
     list.add(statusToString(LINKSTATUS_NEW));

Modified: incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobManager.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobManager.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobManager.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobManager.java
Fri May 27 11:50:58 2011
@@ -256,7 +256,7 @@ public class JobManager implements IJobM
     throws ManifoldCFException
   {
     // For each connection, find the corresponding list of jobs.  From these jobs, we want
the job id and the status.
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     ArrayList list = new ArrayList();
     int maxCount = database.getMaxInClause();
     int currentCount = 0;
@@ -310,7 +310,7 @@ public class JobManager implements IJobM
     throws ManifoldCFException
   {
     // For each connection, find the corresponding list of jobs.  From these jobs, we want
the job id and the status.
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     ArrayList list = new ArrayList();
     int maxCount = database.getMaxInClause();
     int currentCount = 0;
@@ -373,7 +373,7 @@ public class JobManager implements IJobM
     throws ManifoldCFException
   {
     // For each connection, find the corresponding list of jobs.  From these jobs, we want
the job id and the status.
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     ArrayList list = new ArrayList();
     int maxCount = database.getMaxInClause();
     int currentCount = 0;
@@ -427,7 +427,7 @@ public class JobManager implements IJobM
     throws ManifoldCFException
   {
     // For each connection, find the corresponding list of jobs.  From these jobs, we want
the job id and the status.
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     ArrayList list = new ArrayList();
     int maxCount = database.getMaxInClause();
     int currentCount = 0;
@@ -1288,7 +1288,7 @@ public class JobManager implements IJobM
       return new String[0];
 
     // Build a query
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     ArrayList list = new ArrayList();
     sb.append("SELECT t0.").append(jobQueue.docHashField).append(" FROM ").append(jobQueue.getTableName())
       .append(" t0 WHERE t0.").append(jobQueue.docHashField).append(" IN(");
@@ -1386,7 +1386,7 @@ public class JobManager implements IJobM
   public DocumentDescription[] getNextAlreadyProcessedReprioritizationDocuments(long currentTime,
int n)
     throws ManifoldCFException
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     ArrayList list = new ArrayList();
 
     // The desired query is:
@@ -1431,7 +1431,7 @@ public class JobManager implements IJobM
   public DocumentDescription[] getNextNotYetProcessedReprioritizationDocuments(long currentTime,
int n)
     throws ManifoldCFException
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     ArrayList list = new ArrayList();
 
     // This query MUST return only documents that are in a pending state which belong to
an active job!!!
@@ -1615,7 +1615,7 @@ public class JobManager implements IJobM
     list.add(jobQueue.statusToString(jobQueue.STATUS_BEINGDELETED));
     list.add(jobQueue.statusToString(jobQueue.STATUS_BEINGCLEANED));
     
-    StringBuffer sb = new StringBuffer("SELECT t0.");
+    StringBuilder sb = new StringBuilder("SELECT t0.");
     sb.append(jobQueue.idField).append(",t0.");
     sb.append(jobQueue.jobIDField).append(",t0.");
     sb.append(jobQueue.docHashField).append(",t0.");
@@ -2055,7 +2055,7 @@ public class JobManager implements IJobM
     // Note that if there is NO such document, it means we were able to queue all eligible
documents, and thus prioritization is probably not even
     // germane at the moment.
 
-    StringBuffer sb = new StringBuffer("SELECT ");
+    StringBuilder sb = new StringBuilder("SELECT ");
     ArrayList list = new ArrayList();
     
     list.add(Jobs.statusToString(jobs.STATUS_ACTIVE));
@@ -2091,7 +2091,7 @@ public class JobManager implements IJobM
     return rval;
   }
 
-  protected void addDocumentCriteria(StringBuffer sb, ArrayList list, Long currentTimeValue,
Long currentPriorityValue)
+  protected void addDocumentCriteria(StringBuilder sb, ArrayList list, Long currentTimeValue,
Long currentPriorityValue)
     throws ManifoldCFException
   {
     
@@ -2143,7 +2143,7 @@ public class JobManager implements IJobM
 
     ArrayList list = new ArrayList();
 
-    StringBuffer sb = new StringBuffer("SELECT t0.");
+    StringBuilder sb = new StringBuilder("SELECT t0.");
     sb.append(jobQueue.idField).append(",t0.");
     if (Logging.scheduling.isDebugEnabled())
       sb.append(jobQueue.docPriorityField).append(",t0.");
@@ -2539,7 +2539,7 @@ public class JobManager implements IJobM
     // We are going to need to break up this query into a number of subqueries, each covering
a subset of parent id hashes.
     // The goal is to throw all the children into a hash, to make them unique at the end.
     HashMap resultHash = new HashMap();
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     ArrayList list = new ArrayList();
     int maxCount = database.getMaxOrClause();
     int i = 0;
@@ -4001,7 +4001,7 @@ public class JobManager implements IJobM
     // We are going to need to break up this query into a number of subqueries, each covering
a subset of parent id hashes.
     // The goal is to throw all the children into a hash, to make them unique at the end.
     HashMap resultHash = new HashMap();
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     ArrayList list = new ArrayList();
     int maxCount = database.getMaxOrClause();
     int i = 0;
@@ -6490,7 +6490,7 @@ public class JobManager implements IJobM
   {
     // Build the query.
     Long currentTime = new Long(System.currentTimeMillis());
-    StringBuffer sb = new StringBuffer("SELECT ");
+    StringBuilder sb = new StringBuilder("SELECT ");
     ArrayList list = new ArrayList();
     
     list.add(jobQueue.statusToString(jobQueue.STATUS_PENDING));
@@ -6661,7 +6661,7 @@ public class JobManager implements IJobM
 
     Long currentTime = new Long(System.currentTimeMillis());
 
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     ArrayList list = new ArrayList();
     
     
@@ -6810,7 +6810,7 @@ public class JobManager implements IJobM
   * This is complicated by the fact that the extraction code is inherently case sensitive.
 So if case insensitive is
   * desired, that means we whack the whole thing to lower case before doing the match.
   */
-  protected void addBucketExtract(StringBuffer sb, ArrayList list, String columnPrefix, String
columnName, BucketDescription bucketDesc)
+  protected void addBucketExtract(StringBuilder sb, ArrayList list, String columnPrefix,
String columnName, BucketDescription bucketDesc)
   {
     boolean isSensitive = bucketDesc.isSensitive();
     list.add(bucketDesc.getRegexp());
@@ -6819,7 +6819,7 @@ public class JobManager implements IJobM
 
   /** Add criteria clauses to query.
   */
-  protected boolean addCriteria(StringBuffer sb, ArrayList list, String fieldPrefix, String
connectionName, StatusFilterCriteria criteria, boolean whereEmitted)
+  protected boolean addCriteria(StringBuilder sb, ArrayList list, String fieldPrefix, String
connectionName, StatusFilterCriteria criteria, boolean whereEmitted)
     throws ManifoldCFException
   {
     Long[] matchingJobs = criteria.getJobs();
@@ -6984,7 +6984,7 @@ public class JobManager implements IJobM
 
   /** Emit a WHERE or an AND, depending...
   */
-  protected boolean emitClauseStart(StringBuffer sb, boolean whereEmitted)
+  protected boolean emitClauseStart(StringBuilder sb, boolean whereEmitted)
   {
     if (whereEmitted)
       sb.append(" AND ");
@@ -6995,7 +6995,7 @@ public class JobManager implements IJobM
 
   /** Add ordering.
   */
-  protected void addOrdering(StringBuffer sb, String[] completeFieldList, SortOrder sort)
+  protected void addOrdering(StringBuilder sb, String[] completeFieldList, SortOrder sort)
   {
     // Keep track of the fields we've seen
     Map hash = new HashMap();
@@ -7045,7 +7045,7 @@ public class JobManager implements IJobM
 
   /** Add limit and offset.
   */
-  protected void addLimits(StringBuffer sb, int startRow, int maxRowCount)
+  protected void addLimits(StringBuilder sb, int startRow, int maxRowCount)
   {
     sb.append(" ").append(database.constructOffsetLimitClause(startRow,maxRowCount));
   }

Modified: incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobQueue.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobQueue.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobQueue.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobQueue.java
Fri May 27 11:50:58 2011
@@ -551,7 +551,7 @@ public class JobQueue extends org.apache
     throws ManifoldCFException
   {
     ArrayList list = new ArrayList();
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     int i = 0;
     while (i < identifiers.length)
     {
@@ -770,7 +770,7 @@ public class JobQueue extends org.apache
     // Delete in chunks
     int maxInClause = getMaxInClause();
     ArrayList list = new ArrayList();
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     int j = 0;
     int i = 0;
     while (i < ids.length)
@@ -962,7 +962,7 @@ public class JobQueue extends org.apache
     // To avoid deadlock, use 1 instead of something larger.  The docIDs are presumed to
come in in sorted order.
     int maxClause = 1;
 
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     ArrayList list = new ArrayList();
     j = 0;
     while (j < docIDHashes.length)

Modified: incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/Jobs.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/Jobs.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/Jobs.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/Jobs.java
Fri May 27 11:50:58 2011
@@ -374,7 +374,7 @@ public class Jobs extends org.apache.man
     beginTransaction();
     try
     {
-      StringBuffer sb = new StringBuffer();
+      StringBuilder sb = new StringBuilder();
       ArrayList params = new ArrayList();
       int j = 0;
       int maxIn = getMaxInClause();
@@ -2242,7 +2242,7 @@ public class Jobs extends org.apache.man
       return null;
     if (values.size() == 0)
       return "*";
-    StringBuffer rval = new StringBuffer();
+    StringBuilder rval = new StringBuilder();
     Iterator iter = values.getValues();
     boolean first = true;
     while (iter.hasNext())
@@ -2293,7 +2293,7 @@ public class Jobs extends org.apache.man
     beginTransaction();
     try
     {
-      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/jobs/PrereqEventManager.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/PrereqEventManager.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/PrereqEventManager.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/PrereqEventManager.java
Fri May 27 11:50:58 2011
@@ -132,7 +132,7 @@ public class PrereqEventManager extends 
   public void deleteRows(String parentTableName, String joinField, String parentCriteria,
ArrayList list)
     throws ManifoldCFException
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     sb.append("WHERE EXISTS(SELECT 'x' FROM ").append(parentTableName).append(" WHERE ").append(joinField).append("=")
       .append(getTableName()).append(".").append(ownerField);
     if (parentCriteria != null)

Modified: incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/ScheduleManager.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/ScheduleManager.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/ScheduleManager.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/ScheduleManager.java
Fri May 27 11:50:58 2011
@@ -314,7 +314,7 @@ public class ScheduleManager extends org
       return null;
     if (values.size() == 0)
       return "*";
-    StringBuffer rval = new StringBuffer();
+    StringBuilder rval = new StringBuilder();
     Iterator iter = values.getValues();
     boolean first = true;
     while (iter.hasNext())

Modified: incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/repository/RepositoryConnectionManager.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/repository/RepositoryConnectionManager.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/repository/RepositoryConnectionManager.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/repository/RepositoryConnectionManager.java
Fri May 27 11:50:58 2011
@@ -761,7 +761,7 @@ public class RepositoryConnectionManager
     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/repository/RepositoryHistoryManager.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/repository/RepositoryHistoryManager.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/repository/RepositoryHistoryManager.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/repository/RepositoryHistoryManager.java
Fri May 27 11:50:58 2011
@@ -273,7 +273,7 @@ public class RepositoryHistoryManager ex
     throws ManifoldCFException
   {
     // Build the query.
-    StringBuffer sb = new StringBuffer("SELECT ");
+    StringBuilder sb = new StringBuilder("SELECT ");
     ArrayList list = new ArrayList();
     sb.append(idField).append(" AS id,").append(activityTypeField).append(" AS activity,").append(startTimeField).append("
AS starttime,(")
       .append(endTimeField).append("-").append(startTimeField).append(")")
@@ -297,7 +297,7 @@ public class RepositoryHistoryManager ex
   public long countHistoryRows(String connectionName, FilterCriteria criteria)
     throws ManifoldCFException
   {
-    StringBuffer sb = new StringBuffer("SELECT COUNT(*) AS countcol FROM ");
+    StringBuilder sb = new StringBuilder("SELECT COUNT(*) AS countcol FROM ");
     ArrayList list = new ArrayList();
     sb.append(getTableName());
     addCriteria(sb,list,"",connectionName,criteria,false);
@@ -347,7 +347,7 @@ public class RepositoryHistoryManager ex
     // items to the list.  One is based on the start time of the current record; the other
is based on the
     // end time of the current record.  That's why there are two inner clauses with a UNION.
 
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     ArrayList list = new ArrayList();
     sb.append("SELECT * FROM (SELECT t6.bucket AS bucket,")
       .append("t6.windowstart AS windowstart,t6.windowend AS windowend, SUM(t6.activitycount)
AS activitycount")
@@ -409,7 +409,7 @@ public class RepositoryHistoryManager ex
     otherColumns.put("starttime","windowstart");
     otherColumns.put("endtime","windowend");
     
-    StringBuffer newsb = new StringBuffer("SELECT * FROM (");
+    StringBuilder newsb = new StringBuilder("SELECT * FROM (");
     ArrayList newList = new ArrayList();
     newsb.append(constructDistinctOnClause(newList,sb.toString(),list,new String[]{"idbucket"},otherColumns)).append(")
t4");
     addOrdering(newsb,new String[]{"activitycount","starttime","endtime","idbucket"},sort);
@@ -454,7 +454,7 @@ public class RepositoryHistoryManager ex
     // items to the list.  One is based on the start time of the current record; the other
is based on the
     // end time of the current record.  That's why there are two inner clauses with a UNION.
 
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     ArrayList list = new ArrayList();
     sb.append("SELECT * FROM (SELECT t6.bucket AS bucket,")
       .append("t6.windowstart AS windowstart, t6.windowend AS windowend, SUM(t6.bytecount)
AS bytecount")
@@ -516,7 +516,7 @@ public class RepositoryHistoryManager ex
     otherColumns.put("bytecount","bytecount");
     otherColumns.put("starttime","windowstart");
     otherColumns.put("endtime","windowend");
-    StringBuffer newsb = new StringBuffer("SELECT * FROM (");
+    StringBuilder newsb = new StringBuilder("SELECT * FROM (");
     ArrayList newList = new ArrayList();
     newsb.append(constructDistinctOnClause(newList,sb.toString(),list,new String[]{"idbucket"},otherColumns)).append(")
t4");
     addOrdering(newsb,new String[]{"bytecount","starttime","endtime","idbucket"},sort);
@@ -539,7 +539,7 @@ public class RepositoryHistoryManager ex
     //              GROUP BY t1.resultcodebucket,t1.idbucket
     //                      ORDER BY xxx LIMIT yyy OFFSET zzz
 
-    StringBuffer sb = new StringBuffer("SELECT t1.resultcodebucket,t1.idbucket,COUNT('x')
AS eventcount FROM (SELECT ");
+    StringBuilder sb = new StringBuilder("SELECT t1.resultcodebucket,t1.idbucket,COUNT('x')
AS eventcount FROM (SELECT ");
     ArrayList list = new ArrayList();
     addBucketExtract(sb,list,"",resultCodeField,resultCodeBucket);
     sb.append(" AS resultcodebucket, ");
@@ -556,7 +556,7 @@ public class RepositoryHistoryManager ex
   * This is complicated by the fact that the extraction code is inherently case sensitive.
 So if case insensitive is
   * desired, that means we whack the whole thing to lower case before doing the match.
   */
-  protected void addBucketExtract(StringBuffer sb, ArrayList list, String columnPrefix, String
columnName, BucketDescription bucketDesc)
+  protected void addBucketExtract(StringBuilder sb, ArrayList list, String columnPrefix,
String columnName, BucketDescription bucketDesc)
   {
     boolean isSensitive = bucketDesc.isSensitive();
     sb.append(constructSubstringClause(columnPrefix+columnName,"?",!isSensitive));
@@ -565,7 +565,7 @@ public class RepositoryHistoryManager ex
 
   /** Add criteria clauses to query.
   */
-  protected boolean addCriteria(StringBuffer sb, ArrayList list, String fieldPrefix, String
connectionName, FilterCriteria criteria, boolean whereEmitted)
+  protected boolean addCriteria(StringBuilder sb, ArrayList list, String fieldPrefix, String
connectionName, FilterCriteria criteria, boolean whereEmitted)
   {
     whereEmitted = emitClauseStart(sb,whereEmitted);
     sb.append(fieldPrefix).append(ownerNameField).append("=?");
@@ -630,7 +630,7 @@ public class RepositoryHistoryManager ex
 
   /** Emit a WHERE or an AND, depending...
   */
-  protected boolean emitClauseStart(StringBuffer sb, boolean whereEmitted)
+  protected boolean emitClauseStart(StringBuilder sb, boolean whereEmitted)
   {
     if (whereEmitted)
       sb.append(" AND ");
@@ -641,7 +641,7 @@ public class RepositoryHistoryManager ex
 
   /** Add ordering.
   */
-  protected void addOrdering(StringBuffer sb, String[] completeFieldList, SortOrder sort)
+  protected void addOrdering(StringBuilder sb, String[] completeFieldList, SortOrder sort)
   {
     // Keep track of the fields we've seen
     Map hash = new HashMap();
@@ -692,7 +692,7 @@ public class RepositoryHistoryManager ex
 
   /** Add limit and offset.
   */
-  protected void addLimits(StringBuffer sb, int startRow, int maxRowCount)
+  protected void addLimits(StringBuilder sb, int startRow, int maxRowCount)
   {
     sb.append(" ").append(constructOffsetLimitClause(startRow,maxRowCount));
   }

Modified: incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java
Fri May 27 11:50:58 2011
@@ -913,7 +913,7 @@ public class ManifoldCF extends org.apac
   /** Stuff colons so we can't have conflicts. */
   public static String colonStuff(String input)
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     int i = 0;
     while (i < input.length())
     {
@@ -1107,7 +1107,7 @@ public class ManifoldCF extends org.apac
   public static String decodeAPIPathElement(String startingPathElement)
     throws ManifoldCFException
   {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     int i = 0;
     while (i < startingPathElement.length())
     {

Modified: incubator/lcf/branches/CONNECTORS-203/framework/ui-core/src/main/java/org/apache/manifoldcf/ui/util/Encoder.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/ui-core/src/main/java/org/apache/manifoldcf/ui/util/Encoder.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/ui-core/src/main/java/org/apache/manifoldcf/ui/util/Encoder.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/ui-core/src/main/java/org/apache/manifoldcf/ui/util/Encoder.java
Fri May 27 11:50:58 2011
@@ -30,7 +30,7 @@ public class Encoder
   */
   public static String attributeJavascriptEscape(String value)
   {
-    StringBuffer rval = new StringBuffer();
+    StringBuilder rval = new StringBuilder();
     int i = 0;
     while (i < value.length())
     {
@@ -52,7 +52,7 @@ public class Encoder
   */
   public static String attributeEscape(String value)
   {
-    StringBuffer rval = new StringBuffer();
+    StringBuilder rval = new StringBuilder();
     int i = 0;
     while (i < value.length())
     {
@@ -73,7 +73,7 @@ public class Encoder
   */
   public static String bodyEscape(String value)
   {
-    StringBuffer rval = new StringBuffer();
+    StringBuilder rval = new StringBuilder();
     int i = 0;
     while (i < value.length())
     {

Modified: incubator/lcf/branches/CONNECTORS-203/framework/ui-core/src/main/java/org/apache/manifoldcf/ui/util/Formatter.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-203/framework/ui-core/src/main/java/org/apache/manifoldcf/ui/util/Formatter.java?rev=1128269&r1=1128268&r2=1128269&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-203/framework/ui-core/src/main/java/org/apache/manifoldcf/ui/util/Formatter.java
(original)
+++ incubator/lcf/branches/CONNECTORS-203/framework/ui-core/src/main/java/org/apache/manifoldcf/ui/util/Formatter.java
Fri May 27 11:50:58 2011
@@ -36,7 +36,7 @@ public class Formatter
     c.setTimeInMillis(time);
     // We want to format this string in a compact way:
     // mm-dd-yyyy hh:mm:ss.mmm
-    StringBuffer returnString = new StringBuffer();
+    StringBuilder returnString = new StringBuilder();
     writechars(returnString,c.get(Calendar.MONTH)+1,2);
     returnString.append("-");
     writechars(returnString,c.get(Calendar.DAY_OF_MONTH),2);
@@ -97,7 +97,7 @@ public class Formatter
 
   // Helpful formatting methods
 
-  protected static void writechars(StringBuffer sb, int value, int length)
+  protected static void writechars(StringBuilder sb, int value, int length)
   {
     String stuff = Integer.toString(value);
     if (length < stuff.length())



Mime
View raw message