cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r835056 [1/2] - in /cxf/trunk: api/src/main/java/org/apache/cxf/jca/outbound/ api/src/main/java/org/apache/cxf/service/model/ api/src/main/java/org/apache/cxf/tools/validator/ api/src/main/java/org/apache/cxf/wsdl/ benchmark/benchmark1/src/...
Date Wed, 11 Nov 2009 20:42:36 GMT
Author: dkulp
Date: Wed Nov 11 20:42:32 2009
New Revision: 835056

URL: http://svn.apache.org/viewvc?rev=835056&view=rev
Log:
We use java 5, so use StringBuilder instead of StringBuffer everywhere

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/jca/outbound/CXFConnectionSpec.java
    cxf/trunk/api/src/main/java/org/apache/cxf/service/model/SchemaInfo.java
    cxf/trunk/api/src/main/java/org/apache/cxf/tools/validator/AbstractValidator.java
    cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java
    cxf/trunk/benchmark/benchmark1/src/org/apache/cxf/performance/client/BenchClient.java
    cxf/trunk/buildtools/src/main/resources/cxf-pmd-ruleset-generated.xml
    cxf/trunk/buildtools/src/main/resources/cxf-pmd-ruleset.xml
    cxf/trunk/common/common/src/main/java/org/apache/cxf/common/commands/ForkedCommand.java
    cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/ASMHelper.java
    cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/ClassReader.java
    cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/Compiler.java
    cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/PackageUtils.java
    cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/StringUtils.java
    cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/FileUtils.java
    cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/ServiceUtils.java
    cxf/trunk/common/common/src/main/java/org/apache/cxf/jaxb/JAXBUtils.java
    cxf/trunk/common/common/src/test/java/org/apache/cxf/common/util/StringUtilsTest.java
    cxf/trunk/integration/jbi/src/main/java/org/apache/cxf/jbi/se/JarLoader.java
    cxf/trunk/integration/jca/src/main/java/org/apache/cxf/connector/CXFConnectionParam.java
    cxf/trunk/integration/jca/src/main/java/org/apache/cxf/jca/jarloader/JarLoader.java
    cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/ClassLoaderSwitcher.java
    cxf/trunk/maven-plugins/corba/src/main/java/org/apache/cxf/maven_plugin/corba/maven/plugins/WSDLToIDLPlugin.java
    cxf/trunk/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java
    cxf/trunk/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/utils/EprMetaData.java
    cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap11FaultOutInterceptor.java
    cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapPreProtocolOutInterceptor.java
    cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/tcp/frames/SoapTcpMessage.java
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/ManagedBus.java
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/endpoint/ManagedEndpoint.java
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/AutomaticWorkQueueImpl.java
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueManagerImplMBeanWrapper.java
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceUtils.java
    cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/DatabindingException.java
    cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/AegisType.java
    cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanType.java
    cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/util/NamespaceHelper.java
    cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/util/ServiceUtils.java
    cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/util/date/XsDateTimeFormat.java
    cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/xml/AbstractMessageWriter.java
    cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/URITemplate.java
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/HttpUtils.java
    cxf/trunk/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/ProviderFactory.java
    cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/NamespacePrefixAccumulator.java
    cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/interceptor/AbstractMessageResponseTimeInterceptor.java
    cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/utils/ManagementConsole.java
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/policy/PolicyUtils.java
    cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/https/CertificateHostnameVerifier.java
    cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSUtils.java
    cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/uri/URISupport.java
    cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/uri/UnsafeUriCharactersEncoder.java
    cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/AddressingPropertiesImpl.java
    cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/MAPAggregator.java
    cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyOutInterceptor.java
    cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyUtils.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/AbstractCXFToolContainer.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ProcessorTestBase.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/Tag.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotation.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotationElement.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaInterface.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaMethod.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaParameter.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaPort.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaType.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/BadUsageException.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/CommandLineParser.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/ErrorVisitor.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/toolspec/parser/TokenInputStream.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/AnnotationUtil.java
    cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/util/URIParserUtil.java
    cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/common/idltypes/IdlAnonSequence.java
    cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/common/idltypes/IdlDefnImplBase.java
    cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/common/idltypes/IdlScopedName.java
    cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/Scope.java
    cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/idl/TypesUtils.java
    cxf/trunk/tools/corba/src/main/java/org/apache/cxf/tools/corba/processors/wsdl/WSDLToCorbaBinding.java
    cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/SchemaValidator.java
    cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/ValidationResult.java
    cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/model/XDef.java
    cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/model/XNode.java
    cxf/trunk/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
    cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/OperationProcessor.java
    cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/processor/internal/ProcessorUtil.java
    cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/processor/AbstractWSDLToProcessor.java
    cxf/trunk/tools/wsdlto/misc/src/main/java/org/apache/cxf/tools/misc/processor/address/AddressFactory.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/jca/outbound/CXFConnectionSpec.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/jca/outbound/CXFConnectionSpec.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/jca/outbound/CXFConnectionSpec.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/jca/outbound/CXFConnectionSpec.java Wed Nov 11 20:42:32 2009
@@ -180,7 +180,7 @@
     }
 
     public String toString() {
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         buf.append("serviceName=" + serviceName);
         buf.append(",endpointName=" + endpointName);
         buf.append(",wsdlURL=" + wsdlURL);

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/service/model/SchemaInfo.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/service/model/SchemaInfo.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/service/model/SchemaInfo.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/service/model/SchemaInfo.java Wed Nov 11 20:42:32 2009
@@ -57,7 +57,7 @@
     }
     
     public String toString() {
-        StringBuffer buffer = new StringBuffer(this.getClass().getName());
+        StringBuilder buffer = new StringBuilder(this.getClass().getName());
         buffer.append(" [namespaceURI: ");
         buffer.append(namespaceUri);
         buffer.append("] [systemId: ");

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/tools/validator/AbstractValidator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/tools/validator/AbstractValidator.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/tools/validator/AbstractValidator.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/tools/validator/AbstractValidator.java Wed Nov 11 20:42:32 2009
@@ -35,7 +35,7 @@
     }
 
     public String getErrorMessage() {
-        StringBuffer strbuffer = new StringBuffer();
+        StringBuilder strbuffer = new StringBuilder();
         for (int i = 0; i < errorMessages.size(); i++) {
             strbuffer.append(errorMessages.get(i));
             strbuffer.append(System.getProperty("line.separator"));

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java Wed Nov 11 20:42:32 2009
@@ -459,7 +459,7 @@
         }
 
         //wsdlLocation attribute is a list of anyURI.
-        StringBuffer strBuf = new StringBuffer();
+        StringBuilder strBuf = new StringBuilder();
         for (String str : wsdlLocation) {
             strBuf.append(str);
             strBuf.append(" ");

Modified: cxf/trunk/benchmark/benchmark1/src/org/apache/cxf/performance/client/BenchClient.java
URL: http://svn.apache.org/viewvc/cxf/trunk/benchmark/benchmark1/src/org/apache/cxf/performance/client/BenchClient.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/benchmark/benchmark1/src/org/apache/cxf/performance/client/BenchClient.java (original)
+++ cxf/trunk/benchmark/benchmark1/src/org/apache/cxf/performance/client/BenchClient.java Wed Nov 11 20:42:32 2009
@@ -527,7 +527,7 @@
     }
 
     private static String method2s(char direction, char method) {
-        StringBuffer sb = new StringBuffer(20);
+        StringBuilder sb = new StringBuilder(20);
         if (direction == 'e') {
             sb.append("echo");
         } else if (direction == 's') {

Modified: cxf/trunk/buildtools/src/main/resources/cxf-pmd-ruleset-generated.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/buildtools/src/main/resources/cxf-pmd-ruleset-generated.xml?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/buildtools/src/main/resources/cxf-pmd-ruleset-generated.xml (original)
+++ cxf/trunk/buildtools/src/main/resources/cxf-pmd-ruleset-generated.xml Wed Nov 11 20:42:32 2009
@@ -172,7 +172,7 @@
     <!--<rule ref="rulesets/optimizations.xml/AvoidInstantiatingObjectsInLoops"/>-->
     <!--<rule ref="rulesets/optimizations.xml/UseArrayListInsteadOfVector"/>-->
     <!--<rule ref="rulesets/optimizations.xml/SimplifyStartsWith"/>-->
-    <!--<rule ref="rulesets/optimizations.xml/UseStringBufferForStringAppends"/>-->
+    <!--<rule ref="rulesets/optimizations.xml/UseStringBuilderForStringAppends"/>-->
 
     <!--<rule ref="rulesets/strictexception.xml/AvoidCatchingThrowable"/>-->
     <!--<rule ref="rulesets/strictexception.xml/SignatureDeclareThrowsException"/>-->
@@ -184,7 +184,7 @@
     <!--<rule ref="rulesets/strings.xml/AvoidDuplicateLiterals"/>-->
     <!--<rule ref="rulesets/strings.xml/StringInstantiation"/>-->
     <!--<rule ref="rulesets/strings.xml/StringToString"/>-->
-    <!--<rule ref="rulesets/strings.xml/AvoidConcatenatingNonLiteralsInStringBuffer"/>-->
+    <!--<rule ref="rulesets/strings.xml/AvoidConcatenatingNonLiteralsInStringBuilder"/>-->
     <!--<rule ref="rulesets/strings.xml/UnnecessaryCaseChange"/>-->
 
     <!--<rule ref="rulesets/sunsecure.xml/MethodReturnsInternalArray"/>-->

Modified: cxf/trunk/buildtools/src/main/resources/cxf-pmd-ruleset.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/buildtools/src/main/resources/cxf-pmd-ruleset.xml?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/buildtools/src/main/resources/cxf-pmd-ruleset.xml (original)
+++ cxf/trunk/buildtools/src/main/resources/cxf-pmd-ruleset.xml Wed Nov 11 20:42:32 2009
@@ -164,7 +164,7 @@
     <!--<rule ref="rulesets/optimizations.xml/AvoidInstantiatingObjectsInLoops"/>-->
     <!--<rule ref="rulesets/optimizations.xml/UseArrayListInsteadOfVector"/>-->
     <!--<rule ref="rulesets/optimizations.xml/SimplifyStartsWith"/>-->
-    <!--<rule ref="rulesets/optimizations.xml/UseStringBufferForStringAppends"/>-->
+    <!--<rule ref="rulesets/optimizations.xml/UseStringBuilderForStringAppends"/>-->
 
     <!--<rule ref="rulesets/strictexception.xml/AvoidCatchingThrowable"/>-->
     <!--<rule ref="rulesets/strictexception.xml/SignatureDeclareThrowsException"/>-->
@@ -176,7 +176,7 @@
     <!--<rule ref="rulesets/strings.xml/AvoidDuplicateLiterals"/>-->
     <!--<rule ref="rulesets/strings.xml/StringInstantiation"/>-->
     <!--<rule ref="rulesets/strings.xml/StringToString"/>-->
-    <!--<rule ref="rulesets/strings.xml/AvoidConcatenatingNonLiteralsInStringBuffer"/>-->
+    <!--<rule ref="rulesets/strings.xml/AvoidConcatenatingNonLiteralsInStringBuilder"/>-->
     <!--<rule ref="rulesets/strings.xml/UnnecessaryCaseChange"/>-->
 
     <!--<rule ref="rulesets/sunsecure.xml/MethodReturnsInternalArray"/>-->

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/common/commands/ForkedCommand.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/common/commands/ForkedCommand.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/common/commands/ForkedCommand.java (original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/common/commands/ForkedCommand.java Wed Nov 11 20:42:32 2009
@@ -67,7 +67,7 @@
         if (null == arguments) {
             return null;
         }
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         for (int i = 0; i < arguments.length; i++) {
             if (i > 0) {
                 buf.append(" ");
@@ -122,9 +122,8 @@
             if (environment == null) {
                 proc = rt.exec(arguments);
             } else {
-                StringBuffer msg = null;
                 if (LOG.isLoggable(Level.FINE)) {
-                    msg = new StringBuffer();
+                    StringBuilder msg = new StringBuilder();
                     msg.append("Process environment: ");
 
                     for (int i = 0; i < environment.length; i++) {

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/ASMHelper.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/ASMHelper.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/ASMHelper.java (original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/ASMHelper.java Wed Nov 11 20:42:32 2009
@@ -62,7 +62,7 @@
     }
     
     protected static String getMethodSignature(Method m) {
-        StringBuffer buf = new StringBuffer("(");
+        StringBuilder buf = new StringBuilder("(");
         for (Class<?> cl : m.getParameterTypes()) {
             buf.append(getClassCode(cl));
         }

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/ClassReader.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/ClassReader.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/ClassReader.java (original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/ClassReader.java Wed Nov 11 20:42:32 2009
@@ -128,7 +128,7 @@
     protected static String getSignature(Member method, Class[] paramTypes) {
         // compute the method descriptor
 
-        StringBuffer b = new StringBuffer((method instanceof Method) ? method.getName() : "<init>");
+        StringBuilder b = new StringBuilder((method instanceof Method) ? method.getName() : "<init>");
         b.append('(');
 
         for (int i = 0; i < paramTypes.length; i++) {
@@ -145,7 +145,7 @@
         return b.toString();
     }
 
-    private static void addDescriptor(StringBuffer b, Class c) {
+    private static void addDescriptor(StringBuilder b, Class c) {
         if (c.isPrimitive()) {
             if (c == void.class) {
                 b.append('V');

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/Compiler.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/Compiler.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/Compiler.java (original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/Compiler.java Wed Nov 11 20:42:32 2009
@@ -160,7 +160,7 @@
     }
 
     private boolean isLongCommandLines(String args[]) {
-        StringBuffer strBuffer = new StringBuffer();
+        StringBuilder strBuffer = new StringBuilder();
         for (int i = 0; i < args.length; i++) {
             strBuffer.append(args[i]);
         }

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/PackageUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/PackageUtils.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/PackageUtils.java (original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/PackageUtils.java Wed Nov 11 20:42:32 2009
@@ -148,7 +148,7 @@
     }
 
     private static String removeIllegalIdentifierChars(String token) {
-        StringBuffer newToken = new StringBuffer();
+        StringBuilder newToken = new StringBuilder();
         for (int i = 0; i < token.length(); i++) {
             char c = token.charAt(i);
 
@@ -195,7 +195,7 @@
                 tokens[i] = tokenizer.nextToken();
             }
         }
-        StringBuffer namespace = new StringBuffer("http://");
+        StringBuilder namespace = new StringBuilder("http://");
         String dot = "";
         for (int i = 0; i < tokens.length; i++) {
             if (i == 1) {

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/StringUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/StringUtils.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/StringUtils.java (original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/common/util/StringUtils.java Wed Nov 11 20:42:32 2009
@@ -45,7 +45,7 @@
     }
 
     public static String wrapper(String string, String startToken, String endToken) {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         sb.append(startToken);
         sb.append(string);
         sb.append(endToken);
@@ -69,10 +69,15 @@
     }
 
     public static boolean isEmpty(String str) {
-        if (str == null || str.length() == 0) {
-            return true;
+        if (str != null) {
+            int len = str.length();
+            for (int x = 0; x < len; ++x) {
+                if (str.charAt(x) > ' ') {
+                    return false;
+                }
+            }
         }
-        return str.trim().length() == 0;
+        return true;
     }
     
     public static boolean isEmpty(List<String> list) {
@@ -84,19 +89,6 @@
         }
         return false;
     }
-    
-    public static String trim(String target, String token) {
-        int tokenLength = token.length();
-        int targetLength = target.length();
-        
-        if (target.startsWith(token)) {            
-            return trim(target.substring(tokenLength), token);
-        }
-        if (target.endsWith(token)) {            
-            return trim(target.substring(0, targetLength - tokenLength), token);
-        }
-        return target;
-    }
 
     public static boolean isEqualUri(String uri1, String uri2) {
 
@@ -228,7 +220,7 @@
         if (str == null || strLen == 0) {
             return str;
         }
-        return new StringBuffer(strLen)
+        return new StringBuilder(strLen)
             .append(Character.toLowerCase(str.charAt(0)))
             .append(str.substring(1))
             .toString();

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/FileUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/FileUtils.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/FileUtils.java (original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/FileUtils.java Wed Nov 11 20:42:32 2009
@@ -214,7 +214,7 @@
 
     public static String normalizeCRLF(InputStream instream) {
         BufferedReader in = new BufferedReader(new InputStreamReader(instream));
-        StringBuffer result = new StringBuffer();
+        StringBuilder result = new StringBuilder();
         String line = null;
 
         try {

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/ServiceUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/ServiceUtils.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/ServiceUtils.java (original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/helpers/ServiceUtils.java Wed Nov 11 20:42:32 2009
@@ -60,7 +60,7 @@
     }
 
     public static String getMethodName(Method m) {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         sb.append(m.getDeclaringClass().getName());
         sb.append('.');
         sb.append(m.getName());
@@ -107,7 +107,7 @@
             words[i] = st.nextToken();
         }
 
-        StringBuffer sb = new StringBuffer(80);
+        StringBuilder sb = new StringBuilder(80);
 
         for (int i = words.length - 1; i >= 0; --i) {
             String word = words[i];
@@ -174,7 +174,7 @@
             words[i] = st.nextToken();
         }
 
-        StringBuffer sb = new StringBuffer(namespace.length());
+        StringBuilder sb = new StringBuilder(namespace.length());
 
         for (int i = words.length - 1; i >= 0; --i) {
             addWordToPackageBuffer(sb, words[i], i == words.length - 1);
@@ -199,7 +199,7 @@
      * @param word the word to append
      * @param firstWord a flag indicating whether this is the first word
      */
-    private static void addWordToPackageBuffer(StringBuffer sb, String word, boolean firstWord) {
+    private static void addWordToPackageBuffer(StringBuilder sb, String word, boolean firstWord) {
 
         if (JavaUtils.isJavaKeyword(word)) {
             word = JavaUtils.makeNonJavaKeyword(word);

Modified: cxf/trunk/common/common/src/main/java/org/apache/cxf/jaxb/JAXBUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/main/java/org/apache/cxf/jaxb/JAXBUtils.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/common/common/src/main/java/org/apache/cxf/jaxb/JAXBUtils.java (original)
+++ cxf/trunk/common/common/src/main/java/org/apache/cxf/jaxb/JAXBUtils.java Wed Nov 11 20:42:32 2009
@@ -200,7 +200,7 @@
      */
     public static String nameSpaceURIToPackage(URI uri) {
        
-        StringBuffer packageName = new StringBuffer();
+        StringBuilder packageName = new StringBuilder();
         String authority = uri.getAuthority();
         if (authority == null && "urn".equals(uri.getScheme())) {
             authority = uri.getSchemeSpecificPart();
@@ -270,7 +270,7 @@
     }
     
     private static String normalizePackageNamePart(String name) {
-        StringBuffer sname = new StringBuffer(name.toLowerCase());
+        StringBuilder sname = new StringBuilder(name.toLowerCase());
 
         for (int i = 0; i < sname.length(); i++) {
             sname.setCharAt(i, Character.toLowerCase(sname.charAt(i)));
@@ -311,7 +311,7 @@
         // conventional (!) Java class, method, or constant identifier
 
         boolean legalIdentifier = false;
-        StringBuffer buf = new StringBuffer(name);
+        StringBuilder buf = new StringBuilder(name);
         legalIdentifier = Character.isJavaIdentifierStart(buf.charAt(0));
 
         for (int i = 1; i < name.length() && legalIdentifier; i++) {
@@ -348,7 +348,7 @@
             return;
         }
         int index = listIndex + 1;
-        StringBuffer sword = new StringBuffer(word);
+        StringBuilder sword = new StringBuilder(word);
         int first = 0;
         char firstChar = sword.charAt(first);
         if (Character.isLowerCase(firstChar)) {
@@ -407,7 +407,7 @@
         return Character.isUpperCase(c) || Character.isLowerCase(c);
     }
     
-    private static boolean isConventionalIdentifier(StringBuffer buf, IdentifierType type) {
+    private static boolean isConventionalIdentifier(StringBuilder buf, IdentifierType type) {
         if (null == buf || buf.length() == 0) {
             return false;
         }
@@ -439,7 +439,7 @@
     }
     
     private static String makeConventionalIdentifier(List<String> words, IdentifierType type) {
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         boolean firstWord = true;
         if (IdentifierType.GETTER == type) {
             buf.append("get");

Modified: cxf/trunk/common/common/src/test/java/org/apache/cxf/common/util/StringUtilsTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/common/src/test/java/org/apache/cxf/common/util/StringUtilsTest.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/common/common/src/test/java/org/apache/cxf/common/util/StringUtilsTest.java (original)
+++ cxf/trunk/common/common/src/test/java/org/apache/cxf/common/util/StringUtilsTest.java Wed Nov 11 20:42:32 2009
@@ -25,10 +25,6 @@
 import org.junit.Test;
 
 public class StringUtilsTest extends Assert {
-    public void testTrim() throws Exception {
-        String target = "////soapport///";
-        assertEquals("soapport", StringUtils.trim(target, "/"));
-    }
     
     @Test
     public void testDiff() throws Exception {

Modified: cxf/trunk/integration/jbi/src/main/java/org/apache/cxf/jbi/se/JarLoader.java
URL: http://svn.apache.org/viewvc/cxf/trunk/integration/jbi/src/main/java/org/apache/cxf/jbi/se/JarLoader.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/integration/jbi/src/main/java/org/apache/cxf/jbi/se/JarLoader.java (original)
+++ cxf/trunk/integration/jbi/src/main/java/org/apache/cxf/jbi/se/JarLoader.java Wed Nov 11 20:42:32 2009
@@ -104,7 +104,7 @@
     }
 
     private static String buildPartialName(List<String> nameComponents, int size) {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
 
         for (int i = 0; i < size; i++) {
             sb.append(nameComponents.get(i));

Modified: cxf/trunk/integration/jca/src/main/java/org/apache/cxf/connector/CXFConnectionParam.java
URL: http://svn.apache.org/viewvc/cxf/trunk/integration/jca/src/main/java/org/apache/cxf/connector/CXFConnectionParam.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/integration/jca/src/main/java/org/apache/cxf/connector/CXFConnectionParam.java (original)
+++ cxf/trunk/integration/jca/src/main/java/org/apache/cxf/connector/CXFConnectionParam.java Wed Nov 11 20:42:32 2009
@@ -109,7 +109,7 @@
     }  
 
     public String toString() {
-        StringBuffer buf = new StringBuffer(256);
+        StringBuilder buf = new StringBuilder(256);
         buf.append("Interface [" + getInterface() + "] ");
         buf.append("PortName [" + getPortName() + "] ");
         buf.append("ServiceName [" + getServiceName() + "] ");

Modified: cxf/trunk/integration/jca/src/main/java/org/apache/cxf/jca/jarloader/JarLoader.java
URL: http://svn.apache.org/viewvc/cxf/trunk/integration/jca/src/main/java/org/apache/cxf/jca/jarloader/JarLoader.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/integration/jca/src/main/java/org/apache/cxf/jca/jarloader/JarLoader.java (original)
+++ cxf/trunk/integration/jca/src/main/java/org/apache/cxf/jca/jarloader/JarLoader.java Wed Nov 11 20:42:32 2009
@@ -104,7 +104,7 @@
     }
 
     private static String buildPartialName(List<String> nameComponents, int size) {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
 
         for (int i = 0; i < size; i++) {
             sb.append(nameComponents.get(i));

Modified: cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/ClassLoaderSwitcher.java
URL: http://svn.apache.org/viewvc/cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/ClassLoaderSwitcher.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/ClassLoaderSwitcher.java (original)
+++ cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/ClassLoaderSwitcher.java Wed Nov 11 20:42:32 2009
@@ -57,7 +57,7 @@
      */
     public void switchClassLoader(MavenProject project, boolean useCompileClasspath, File classesDir) {
         List<URL> urlList = new ArrayList<URL>();
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
 
         try {
             urlList.add(classesDir.toURI().toURL());

Modified: cxf/trunk/maven-plugins/corba/src/main/java/org/apache/cxf/maven_plugin/corba/maven/plugins/WSDLToIDLPlugin.java
URL: http://svn.apache.org/viewvc/cxf/trunk/maven-plugins/corba/src/main/java/org/apache/cxf/maven_plugin/corba/maven/plugins/WSDLToIDLPlugin.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/maven-plugins/corba/src/main/java/org/apache/cxf/maven_plugin/corba/maven/plugins/WSDLToIDLPlugin.java (original)
+++ cxf/trunk/maven-plugins/corba/src/main/java/org/apache/cxf/maven_plugin/corba/maven/plugins/WSDLToIDLPlugin.java Wed Nov 11 20:42:32 2009
@@ -78,7 +78,7 @@
 
         
         List<URL> urlList = new ArrayList<URL>();
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
 
         try {
             urlList.add(outputDir.toURI().toURL());

Modified: cxf/trunk/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java
URL: http://svn.apache.org/viewvc/cxf/trunk/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java (original)
+++ cxf/trunk/maven-plugins/java2ws-plugin/src/main/java/org/apache/cxf/maven_plugin/Java2WSMojo.java Wed Nov 11 20:42:32 2009
@@ -142,7 +142,7 @@
     private Boolean attachWsdl;
     
     public void execute() throws MojoExecutionException {
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         for (Object classpathElement : classpathElements) {
             buf.append(classpathElement.toString());
             buf.append(File.pathSeparatorChar);

Modified: cxf/trunk/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/utils/EprMetaData.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/utils/EprMetaData.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/utils/EprMetaData.java (original)
+++ cxf/trunk/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/utils/EprMetaData.java Wed Nov 11 20:42:32 2009
@@ -68,7 +68,7 @@
     public String toString() {
         String ret = null;
         if (isValid()) {
-            StringBuffer b = new StringBuffer();
+            StringBuilder b = new StringBuilder();
             b.append('{');
             b.append(binding.getQName());
             b.append(',');

Modified: cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap11FaultOutInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap11FaultOutInterceptor.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap11FaultOutInterceptor.java (original)
+++ cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/Soap11FaultOutInterceptor.java Wed Nov 11 20:42:32 2009
@@ -96,7 +96,7 @@
                 String config = (String)message.getContextualProperty(
                         org.apache.cxf.message.Message.FAULT_STACKTRACE_ENABLED);
                 if (config != null && Boolean.valueOf(config).booleanValue() && fault.getCause() != null) {
-                    StringBuffer sb = new StringBuffer();
+                    StringBuilder sb = new StringBuilder();
                     for (StackTraceElement ste : fault.getCause().getStackTrace()) {                    
                         sb.append(ste.getClassName() + "!" + ste.getMethodName() + "!" + ste.getFileName()  
                                 + "!" + ste.getLineNumber() + "\n");

Modified: cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapPreProtocolOutInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapPreProtocolOutInterceptor.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapPreProtocolOutInterceptor.java (original)
+++ cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapPreProtocolOutInterceptor.java Wed Nov 11 20:42:32 2009
@@ -145,7 +145,7 @@
         }
         
         if (!action.startsWith("\"")) {
-            action = new StringBuffer().append("\"").append(action).append("\"").toString();
+            action = new StringBuilder().append("\"").append(action).append("\"").toString();
         }
         
         return action;

Modified: cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/tcp/frames/SoapTcpMessage.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/tcp/frames/SoapTcpMessage.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/tcp/frames/SoapTcpMessage.java (original)
+++ cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/tcp/frames/SoapTcpMessage.java Wed Nov 11 20:42:32 2009
@@ -138,7 +138,7 @@
     }
 
     public String getContent() {
-        StringBuffer result = new StringBuffer();
+        StringBuilder result = new StringBuilder();
 
         try {
             for (SoapTcpFrame frame : frames) {

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java Wed Nov 11 20:42:32 2009
@@ -81,7 +81,7 @@
         //   type="application/soap+xml; action="urn:ihe:iti:2007:RetrieveDocumentSet""
         if ((bodyCt.indexOf('"') != -1) && (bodyCt.indexOf(';') != -1)) {
             int pos = bodyCt.indexOf(';');
-            StringBuffer st = new StringBuffer(bodyCt.substring(0 , pos));
+            StringBuilder st = new StringBuilder(bodyCt.substring(0 , pos));
             st.append("\"").append(bodyCt.substring(pos, bodyCt.length() - 1));
             bodyCt = st.toString();
         }        

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/attachment/AttachmentUtil.java Wed Nov 11 20:42:32 2009
@@ -103,7 +103,7 @@
     }
 
     public static String getAttachmentPartHeader(Attachment att) {
-        StringBuffer buffer = new StringBuffer(200);
+        StringBuilder buffer = new StringBuilder(200);
         buffer.append(HttpHeaderHelper.getHeaderKey(HttpHeaderHelper.CONTENT_TYPE) + ": "
                 + att.getDataHandler().getContentType() + ";\r\n");
         if (att.isXOP()) {

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/ManagedBus.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/ManagedBus.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/ManagedBus.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/ManagedBus.java Wed Nov 11 20:42:32 2009
@@ -46,7 +46,7 @@
     
     public ObjectName getObjectName() throws JMException {
         String busId = bus.getId();
-        StringBuffer buffer = new StringBuffer(ManagementConstants.DEFAULT_DOMAIN_NAME + ":");
+        StringBuilder buffer = new StringBuilder(ManagementConstants.DEFAULT_DOMAIN_NAME + ":");
         buffer.append(ManagementConstants.BUS_ID_PROP + "=" +  busId + ",");
         buffer.append(ManagementConstants.TYPE_PROP + "="  + TYPE_VALUE);
         

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/extension/Extension.java Wed Nov 11 20:42:32 2009
@@ -35,7 +35,7 @@
     private Collection<String> namespaces = new ArrayList<String>();
     
     public String toString() {
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         buf.append("class: ");
         buf.append(className);
         buf.append(", interface: ");

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/endpoint/ManagedEndpoint.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/endpoint/ManagedEndpoint.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/endpoint/ManagedEndpoint.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/endpoint/ManagedEndpoint.java Wed Nov 11 20:42:32 2009
@@ -80,7 +80,7 @@
         
     public ObjectName getObjectName() throws JMException {
         String busId = bus.getId();
-        StringBuffer buffer = new StringBuffer();
+        StringBuilder buffer = new StringBuilder();
         buffer.append(ManagementConstants.DEFAULT_DOMAIN_NAME + ":");
         buffer.append(ManagementConstants.BUS_ID_PROP + "=" + busId + ",");
         buffer.append(ManagementConstants.TYPE_PROP + "=" + "Bus.Service.Endpoint,");

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/AutomaticWorkQueueImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/AutomaticWorkQueueImpl.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/AutomaticWorkQueueImpl.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/AutomaticWorkQueueImpl.java Wed Nov 11 20:42:32 2009
@@ -92,7 +92,7 @@
         lowWaterMark = -1 == lowWaterMark ? Integer.MAX_VALUE : lowWaterMark;
         highWaterMark = -1 == highWaterMark ? Integer.MAX_VALUE : highWaterMark;
                 
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         buf.append("Constructing automatic work queue with:\n");
         buf.append("max queue size: " + maxQueueSize + "\n");
         buf.append("initialThreads: " + initialThreads + "\n");
@@ -212,7 +212,7 @@
     }
     
     public String toString() {
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         buf.append(super.toString());
         buf.append(" [queue size: ");
         buf.append(getSize());

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueImplMBeanWrapper.java Wed Nov 11 20:42:32 2009
@@ -88,7 +88,7 @@
         if (mgr instanceof WorkQueueManagerImpl) {
             busId = ((WorkQueueManagerImpl)mgr).getBus().getId();
         }
-        StringBuffer buffer = new StringBuffer();
+        StringBuilder buffer = new StringBuilder();
         buffer.append(ManagementConstants.DEFAULT_DOMAIN_NAME + ":");
         buffer.append(ManagementConstants.BUS_ID_PROP + "=" + busId + ",");
         buffer.append(WorkQueueManagerImplMBeanWrapper.TYPE_VALUE + "=");

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueManagerImplMBeanWrapper.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueManagerImplMBeanWrapper.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueManagerImplMBeanWrapper.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/workqueue/WorkQueueManagerImplMBeanWrapper.java Wed Nov 11 20:42:32 2009
@@ -52,7 +52,7 @@
     public ObjectName getObjectName() throws JMException {
         
         String busId = bus.getId();        
-        StringBuffer buffer = new StringBuffer();
+        StringBuilder buffer = new StringBuilder();
         buffer.append(ManagementConstants.DEFAULT_DOMAIN_NAME + ":");
         buffer.append(ManagementConstants.BUS_ID_PROP + "=" + busId + ",");
         buffer.append("WorkQueueManager=" + NAME_VALUE);

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceBuilder.java Wed Nov 11 20:42:32 2009
@@ -468,7 +468,7 @@
 
     public BindingInfo buildBinding(ServiceInfo service, Binding binding) {
         BindingInfo bi = null;
-        StringBuffer ns = new StringBuffer(100);
+        StringBuilder ns = new StringBuilder(100);
         BindingFactory factory = WSDLServiceUtils.getBindingFactory(binding, bus, ns);
         if (factory instanceof WSDLBindingFactory) {
             WSDLBindingFactory wFactory = (WSDLBindingFactory)factory;

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceUtils.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceUtils.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/wsdl11/WSDLServiceUtils.java Wed Nov 11 20:42:32 2009
@@ -33,7 +33,7 @@
 
     }
 
-    public static BindingFactory getBindingFactory(Binding binding, Bus bus, StringBuffer sb) {
+    public static BindingFactory getBindingFactory(Binding binding, Bus bus, StringBuilder sb) {
         BindingFactory factory = null;
         for (Object obj : binding.getExtensibilityElements()) {
             if (obj instanceof ExtensibilityElement) {

Modified: cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/DatabindingException.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/DatabindingException.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/DatabindingException.java (original)
+++ cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/DatabindingException.java Wed Nov 11 20:42:32 2009
@@ -86,7 +86,7 @@
         if (extraMessages.isEmpty()) {
             return super.getMessage();
         }
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         for (String s : extraMessages) {
             buf.append(s);
         }

Modified: cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/AegisType.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/AegisType.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/AegisType.java (original)
+++ cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/AegisType.java Wed Nov 11 20:42:32 2009
@@ -254,7 +254,7 @@
 
     @Override
     public String toString() {
-        StringBuffer sb = new StringBuffer(getClass().getName());
+        StringBuilder sb = new StringBuilder(getClass().getName());
         sb.append("[class=");
         Type c = getTypeClass();
         if (c instanceof Class) {

Modified: cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanType.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanType.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanType.java (original)
+++ cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/basic/BeanType.java Wed Nov 11 20:42:32 2009
@@ -620,7 +620,7 @@
      */
     @Override
     public String toString() {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         sb.append(getClass().getName());
         sb.append(": [class=");
         Class c = getTypeClass();

Modified: cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/util/NamespaceHelper.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/util/NamespaceHelper.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/util/NamespaceHelper.java (original)
+++ cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/util/NamespaceHelper.java Wed Nov 11 20:42:32 2009
@@ -156,7 +156,7 @@
             words[i] = st.nextToken();
         }
 
-        StringBuffer sb = new StringBuffer(80);
+        StringBuilder sb = new StringBuilder(80);
 
         for (int i = words.length - 1; i >= 0; --i) {
             String word = words[i];
@@ -223,7 +223,7 @@
             words[i] = st.nextToken();
         }
 
-        StringBuffer sb = new StringBuffer(namespace.length());
+        StringBuilder sb = new StringBuilder(namespace.length());
 
         for (int i = words.length - 1; i >= 0; --i) {
             addWordToPackageBuffer(sb, words[i], i == words.length - 1);
@@ -248,7 +248,7 @@
      * @param word the word to append
      * @param firstWord a flag indicating whether this is the first word
      */
-    private static void addWordToPackageBuffer(StringBuffer sb, String word, boolean firstWord) {
+    private static void addWordToPackageBuffer(StringBuilder sb, String word, boolean firstWord) {
 
         if (JavaUtils.isJavaKeyword(word)) {
             word = JavaUtils.makeNonJavaKeyword(word);

Modified: cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/util/ServiceUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/util/ServiceUtils.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/util/ServiceUtils.java (original)
+++ cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/util/ServiceUtils.java Wed Nov 11 20:42:32 2009
@@ -61,7 +61,7 @@
     }
 
     public static String getMethodName(Method m) {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         sb.append(m.getDeclaringClass().getName());
         sb.append('.');
         sb.append(m.getName());

Modified: cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/util/date/XsDateTimeFormat.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/util/date/XsDateTimeFormat.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/util/date/XsDateTimeFormat.java (original)
+++ cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/util/date/XsDateTimeFormat.java Wed Nov 11 20:42:32 2009
@@ -109,7 +109,7 @@
             throw new NullPointerException("The Calendar argument must not be null.");
         }
         if (pBuffer == null) {
-            throw new NullPointerException("The StringBuffer argument must not be null.");
+            throw new NullPointerException("The StringBuilder argument must not be null.");
         }
         if (pPos == null) {
             throw new NullPointerException("The FieldPosition argument must not be null.");

Modified: cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/xml/AbstractMessageWriter.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/xml/AbstractMessageWriter.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/xml/AbstractMessageWriter.java (original)
+++ cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/xml/AbstractMessageWriter.java Wed Nov 11 20:42:32 2009
@@ -47,7 +47,7 @@
         String prefix = getPrefixForNamespace(type.getNamespaceURI(), type.getPrefix());
         String value;
         if (prefix != null && prefix.length() > 0) {
-            StringBuffer sb = new StringBuffer(prefix.length() + 1 + type.getLocalPart().length());
+            StringBuilder sb = new StringBuilder(prefix.length() + 1 + type.getLocalPart().length());
             sb.append(prefix);
             sb.append(':');
             sb.append(type.getLocalPart());

Modified: cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java (original)
+++ cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java Wed Nov 11 20:42:32 2009
@@ -417,7 +417,7 @@
             return;
         }
         
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         boolean first = true;
         for (Iterator<JPackage> itr = codeModel.packages(); itr.hasNext();) {
             JPackage package1 = itr.next();

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/URITemplate.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/URITemplate.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/URITemplate.java (original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/URITemplate.java Wed Nov 11 20:42:32 2009
@@ -203,7 +203,7 @@
             throw new IllegalArgumentException("values is null");
         }
         Iterator<String> iter = values.iterator();
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         for (UriChunk chunk : uriChunks) {
             if (chunk instanceof Variable) {
                 Variable var = (Variable)chunk;
@@ -241,7 +241,7 @@
         if (valuesMap == null) {
             throw new IllegalArgumentException("valuesMap is null");
         }
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         for (UriChunk chunk : uriChunks) {
             if (chunk instanceof Variable) {
                 Variable var = (Variable)chunk;
@@ -271,7 +271,7 @@
      */
     public String encodeLiteralCharacters() {
         final float encodedRatio = 1.5f;
-        StringBuffer sb = new StringBuffer((int)(encodedRatio * template.length()));
+        StringBuilder sb = new StringBuilder((int)(encodedRatio * template.length()));
         for (UriChunk chunk : uriChunks) {
             String val = chunk.getValue();
             if (chunk instanceof Literal) {

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/HttpUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/HttpUtils.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/HttpUtils.java (original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/HttpUtils.java Wed Nov 11 20:42:32 2009
@@ -99,7 +99,7 @@
             return encoded;
         }
         Matcher m = ENCODE_PATTERN.matcher(encoded);
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         int i = 0;
         while (m.find()) {
             String before = encoded.substring(i, m.start());

Modified: cxf/trunk/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/ProviderFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/ProviderFactory.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/ProviderFactory.java (original)
+++ cxf/trunk/rt/frontend/js/src/main/java/org/apache/cxf/js/rhino/ProviderFactory.java Wed Nov 11 20:42:32 2009
@@ -73,7 +73,7 @@
         boolean isE4X = f.getName().endsWith(".jsx");
         BufferedReader bufrd = new BufferedReader(new FileReader(f));
         String line = null;
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         for (;;) {
             line = bufrd.readLine();
             if (line == null) {
@@ -125,7 +125,7 @@
                     try {
                         provider.publish();
                     } catch (AbstractDOMProvider.JSDOMProviderException ex) {
-                        StringBuffer msg = new StringBuffer(f.getPath());
+                        StringBuilder msg = new StringBuilder(f.getPath());
                         msg.append(": ").append(ex.getMessage());
                         throw new Exception(msg.toString());
                     }
@@ -146,7 +146,7 @@
             String modestr = (mode == Service.Mode.PAYLOAD) ? "payload" : "message";
             String type = e4x ? "E4X" : "JavaScript";
             String base = isBase ? "base " : "";
-            StringBuffer msg = new StringBuffer("creating a ");
+            StringBuilder msg = new StringBuilder("creating a ");
             msg.append(modestr)
                 .append(" ")
                 .append(type)

Modified: cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/NamespacePrefixAccumulator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/NamespacePrefixAccumulator.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/NamespacePrefixAccumulator.java (original)
+++ cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/NamespacePrefixAccumulator.java Wed Nov 11 20:42:32 2009
@@ -30,14 +30,14 @@
 import org.apache.ws.commons.schema.XmlSchemaAttribute;
 
 public class NamespacePrefixAccumulator {
-    private StringBuffer attributes;
+    private StringBuilder attributes;
     private Set<String> prefixes;
     private Map<String, String> fallbackNamespacePrefixMap;
     private int nsCounter;
     private SchemaCollection schemaCollection;
 
     public NamespacePrefixAccumulator(SchemaCollection schemaCollection) {
-        attributes = new StringBuffer();
+        attributes = new StringBuilder();
         prefixes = new HashSet<String>();
         fallbackNamespacePrefixMap = new HashMap<String, String>();
         nsCounter = 0;

Modified: cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/interceptor/AbstractMessageResponseTimeInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/interceptor/AbstractMessageResponseTimeInterceptor.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/interceptor/AbstractMessageResponseTimeInterceptor.java (original)
+++ cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/interceptor/AbstractMessageResponseTimeInterceptor.java Wed Nov 11 20:42:32 2009
@@ -110,7 +110,7 @@
             String portName = "\"" + endpoint.getEndpointInfo().getName().getLocalPart() + "\"";
             String operationName = opInfo == null ? null : "\"" + opInfo.getName().getLocalPart() + "\"";
             
-            StringBuffer buffer = new StringBuffer();
+            StringBuilder buffer = new StringBuilder();
             buffer.append(ManagementConstants.DEFAULT_DOMAIN_NAME + ":");
             buffer.append(ManagementConstants.BUS_ID_PROP + "=" + bus.getId() + ",");
             if (isClient(message)) {

Modified: cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/utils/ManagementConsole.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/utils/ManagementConsole.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/utils/ManagementConsole.java (original)
+++ cxf/trunk/rt/management/src/main/java/org/apache/cxf/management/utils/ManagementConsole.java Wed Nov 11 20:42:32 2009
@@ -102,7 +102,7 @@
     
     ObjectName getEndpointObjectName() 
         throws MalformedObjectNameException, NullPointerException {
-        StringBuffer buffer = new StringBuffer();
+        StringBuilder buffer = new StringBuilder();
         buffer.append(ManagementConstants.DEFAULT_DOMAIN_NAME + ":type=Bus.Service.Endpoint,");
         buffer.append(ManagementConstants.SERVICE_NAME_PROP + "=\"" + serviceName + "\",");
         buffer.append(ManagementConstants.PORT_NAME_PROP + "=\"" + portName + "\",*");        

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java (original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/HTTPConduit.java Wed Nov 11 20:42:32 2009
@@ -2087,7 +2087,7 @@
                 LOG.fine("Content length: " + connection.getContentLength());
                 Map<String, List<String>> headerFields = connection.getHeaderFields();
                 if (null != headerFields) {
-                    StringBuffer buf = new StringBuffer();
+                    StringBuilder buf = new StringBuilder();
                     buf.append("Header fields: ");
                     buf.append(System.getProperty("line.separator"));
                     for (String h : headerFields.keySet()) {

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/policy/PolicyUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/policy/PolicyUtils.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/policy/PolicyUtils.java (original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/http/policy/PolicyUtils.java Wed Nov 11 20:42:32 2009
@@ -679,7 +679,7 @@
     }
     
     public static String toString(HTTPClientPolicy p) {
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         buf.append(p);
         buf.append("[DecoupledEndpoint=\"");
         buf.append(p.getDecoupledEndpoint());
@@ -690,7 +690,7 @@
     }
     
     public static String toString(HTTPServerPolicy p) {
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         buf.append(p);
         buf.append("[ContentType=\"");
         buf.append(p.getContentType());

Modified: cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/https/CertificateHostnameVerifier.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/https/CertificateHostnameVerifier.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/https/CertificateHostnameVerifier.java (original)
+++ cxf/trunk/rt/transports/http/src/main/java/org/apache/cxf/transport/https/CertificateHostnameVerifier.java Wed Nov 11 20:42:32 2009
@@ -350,7 +350,7 @@
             final boolean strictWithSubDomains)
             throws SSLException {
             // Build up lists of allowed hosts For logging/debugging purposes.
-            StringBuffer buf = new StringBuffer(32);
+            StringBuilder buf = new StringBuilder(32);
             buf.append('<');
             for (int i = 0; i < hosts.length; i++) {
                 String h = hosts[i];
@@ -388,8 +388,8 @@
                 throw new SSLException(msg);
             }
 
-            // StringBuffer for building the error message.
-            buf = new StringBuffer();
+            // StringBuilder for building the error message.
+            buf = new StringBuilder();
 
             boolean match = false;
         out:
@@ -397,7 +397,7 @@
                 // Don't trim the CN, though!
                 String cn = it.next();
                 cn = cn.toLowerCase();
-                // Store CN in StringBuffer in case we need to report an error.
+                // Store CN in StringBuilder in case we need to report an error.
                 buf.append(" <");
                 buf.append(cn);
                 buf.append('>');

Modified: cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSUtils.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSUtils.java (original)
+++ cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSUtils.java Wed Nov 11 20:42:32 2009
@@ -618,7 +618,7 @@
 
     public static String createCorrelationId(final String prefix, long i) {
         String index = Long.toHexString(i);
-        StringBuffer id = new StringBuffer(prefix);
+        StringBuilder id = new StringBuilder(prefix);
         id.append(CORRELATTION_ID_PADDING, 0, 16 - index.length());
         id.append(index);
         return id.toString();

Modified: cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/uri/URISupport.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/uri/URISupport.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/uri/URISupport.java (original)
+++ cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/uri/URISupport.java Wed Nov 11 20:42:32 2009
@@ -75,7 +75,7 @@
         }
 
         public URI toURI() throws URISyntaxException {
-            StringBuffer sb = new StringBuffer();
+            StringBuilder sb = new StringBuilder();
             if (scheme != null) {
                 sb.append(scheme);
                 sb.append(':');
@@ -228,7 +228,7 @@
     public static String createQueryString(Map options) throws URISyntaxException {
         try {
             if (options.size() > 0) {
-                StringBuffer rc = new StringBuffer();
+                StringBuilder rc = new StringBuilder();
                 boolean first = true;
                 for (Object o : options.keySet()) {
                     if (first) {

Modified: cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/uri/UnsafeUriCharactersEncoder.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/uri/UnsafeUriCharactersEncoder.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/uri/UnsafeUriCharactersEncoder.java (original)
+++ cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/uri/UnsafeUriCharactersEncoder.java Wed Nov 11 20:42:32 2009
@@ -76,7 +76,7 @@
             }
 
             // okay there are some unsafe characters so we do need to encode
-            StringBuffer sb = new StringBuffer();
+            StringBuilder sb = new StringBuilder();
             for (byte b : bytes) {
                 if (unsafeCharacters.get(b)) {
                     appendEscape(sb, b);
@@ -91,7 +91,7 @@
         }
     }
 
-    private static void appendEscape(StringBuffer sb, byte b) {
+    private static void appendEscape(StringBuilder sb, byte b) {
         sb.append('%');
         sb.append(HEX_DIGITS[(b >> 4) & 0x0f]);
         sb.append(HEX_DIGITS[(b >> 0) & 0x0f]);

Modified: cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/AddressingPropertiesImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/AddressingPropertiesImpl.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/AddressingPropertiesImpl.java (original)
+++ cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/AddressingPropertiesImpl.java Wed Nov 11 20:42:32 2009
@@ -218,7 +218,7 @@
     }
 
     public String toString() {
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         buf.append("[");
         if (null != messageID) {
             if (buf.length() > 1) {

Modified: cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/MAPAggregator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/MAPAggregator.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/MAPAggregator.java (original)
+++ cxf/trunk/rt/ws/addr/src/main/java/org/apache/cxf/ws/addressing/MAPAggregator.java Wed Nov 11 20:42:32 2009
@@ -553,7 +553,7 @@
     }
 
     private String addPath(String uri, String path) {
-        StringBuffer buffer = new StringBuffer();
+        StringBuilder buffer = new StringBuilder();
         buffer.append(uri);
         String delimiter = getDelimiter(uri);
         if (!uri.endsWith(delimiter) && !path.startsWith(delimiter)) {

Modified: cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyOutInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyOutInterceptor.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyOutInterceptor.java (original)
+++ cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyOutInterceptor.java Wed Nov 11 20:42:32 2009
@@ -91,7 +91,7 @@
             Collection<PolicyAssertion> assertions = effectivePolicy.getChosenAlternative();
             if (null != assertions && !assertions.isEmpty()) {
                 if (LOG.isLoggable(Level.FINEST)) {
-                    StringBuffer buf = new StringBuffer();
+                    StringBuilder buf = new StringBuilder();
                     buf.append("Chosen alternative: ");
                     String nl = System.getProperty("line.separator");
                     buf.append(nl);
@@ -122,7 +122,7 @@
             Collection<PolicyAssertion> assertions = effectivePolicy.getChosenAlternative();
             if (null != assertions && !assertions.isEmpty()) {
                 if (LOG.isLoggable(Level.FINEST)) {
-                    StringBuffer buf = new StringBuffer();
+                    StringBuilder buf = new StringBuilder();
                     buf.append("Chosen alternative: ");
                     String nl = System.getProperty("line.separator");
                     buf.append(nl);

Modified: cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyUtils.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyUtils.java (original)
+++ cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyUtils.java Wed Nov 11 20:42:32 2009
@@ -87,7 +87,7 @@
             log.log(level, msg);
             return;
         }
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         buf.append(msg);
         nl(buf);
         printPolicyComponent(pc, buf, 0);
@@ -95,12 +95,12 @@
     }
     
     public static void printPolicyComponent(PolicyComponent pc) {
-        StringBuffer buf = new StringBuffer();
+        StringBuilder buf = new StringBuilder();
         printPolicyComponent(pc, buf, 0);
         System.out.println(buf.toString());
     }
     
-    public static void printPolicyComponent(PolicyComponent pc, StringBuffer buf, int level) {
+    public static void printPolicyComponent(PolicyComponent pc, StringBuilder buf, int level) {
         indent(buf, level);
         buf.append("type: ");
         buf.append(typeToString(pc.getType()));
@@ -132,13 +132,13 @@
         }
     }
     
-    private static void indent(StringBuffer buf, int level) {
+    private static void indent(StringBuilder buf, int level) {
         for (int i = 0; i < level; i++) {
             buf.append(INDENT);
         }
     }
     
-    private static void nl(StringBuffer buf) {
+    private static void nl(StringBuilder buf) {
         buf.append(System.getProperty("line.separator"));
     }
     

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/AbstractCXFToolContainer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/AbstractCXFToolContainer.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/AbstractCXFToolContainer.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/AbstractCXFToolContainer.java Wed Nov 11 20:42:32 2009
@@ -196,7 +196,7 @@
         }
 
         StringTokenizer strToken = new StringTokenizer(loc, "-.!~*'();?:@&=+$,");
-        StringBuffer strBuf = new StringBuffer();
+        StringBuilder strBuf = new StringBuilder();
 
         if (!strToken.hasMoreTokens()) {
             strBuf.append(loc);

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ProcessorTestBase.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ProcessorTestBase.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ProcessorTestBase.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/ProcessorTestBase.java Wed Nov 11 20:42:32 2009
@@ -76,7 +76,7 @@
 
     protected String getClassPath() throws URISyntaxException, IOException {
         ClassLoader loader = getClass().getClassLoader();
-        StringBuffer classPath = new StringBuffer();
+        StringBuilder classPath = new StringBuilder();
         if (loader instanceof URLClassLoader) {
             URLClassLoader urlLoader = (URLClassLoader)loader;
             for (URL url : urlLoader.getURLs()) {

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/Tag.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/Tag.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/Tag.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/Tag.java Wed Nov 11 20:42:32 2009
@@ -83,7 +83,7 @@
     
     private String createIndent(int size) {
         String indent = "    ";
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         for (int i = 0; i < size; i++) {
             sb.append(indent);
         }
@@ -91,7 +91,7 @@
     }
 
     private String formatAttribute(final Tag tag) {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         sb.append(tag.getName().getLocalPart());
         sb.append(" ");
         for (Map.Entry<QName, String> attr : tag.getAttributes().entrySet()) {
@@ -104,7 +104,7 @@
     }
 
     private String formatTag(Tag tag, int indent) {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         sb.append(createIndent(indent));
         sb.append(indent);
         sb.append("<");
@@ -128,7 +128,7 @@
     }
 
     public String toString() {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         sb.append(formatTag(this, 0));
         return sb.toString();
     }

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotation.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotation.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotation.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotation.java Wed Nov 11 20:42:32 2009
@@ -86,7 +86,7 @@
     }
 
     public String toString() {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         sb.append("@");
         sb.append(type.getSimpleName());
         if (getElements().isEmpty()) {

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotationElement.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotationElement.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotationElement.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotationElement.java Wed Nov 11 20:42:32 2009
@@ -64,7 +64,7 @@
     }
 
     public String toString() {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         if (name != null) {
             sb.append(name);
         }
@@ -89,7 +89,7 @@
         return sb.toString();
     }
 
-    private void appendValue(final StringBuffer sb, final Object obj) {
+    private void appendValue(final StringBuilder sb, final Object obj) {
         if (obj instanceof String) {
             if (isPrimitive) {
                 sb.append(obj);
@@ -119,7 +119,7 @@
         }
     }
 
-    private void appendEnumValue(final StringBuffer sb, final Object obj) {
+    private void appendEnumValue(final StringBuilder sb, final Object obj) {
         Enum e = (Enum) obj;
 
         String clzName = e.getClass().getName();
@@ -133,7 +133,7 @@
         sb.append(e.name());
     }
 
-    private void getStringValue(final StringBuffer sb, final Object obj) {
+    private void getStringValue(final StringBuilder sb, final Object obj) {
         sb.append("\"");
         sb.append(obj);
         sb.append("\"");

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaInterface.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaInterface.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaInterface.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaInterface.java Wed Nov 11 20:42:32 2009
@@ -240,7 +240,7 @@
     }
 
     public String getFullClassName() {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         sb.append(getPackageName());
         sb.append(".");
         sb.append(getName());
@@ -248,7 +248,7 @@
     }
 
     public String toString() {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         for (JAnnotation anno : annotations) {
             sb.append(anno);
             sb.append("\n");

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaMethod.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaMethod.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaMethod.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaMethod.java Wed Nov 11 20:42:32 2009
@@ -84,7 +84,7 @@
     }
 
     public String getSignature() {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         sb.append(javaReturn.getName());
         sb.append("#");
         sb.append(javaInterface.getPackageName());
@@ -315,7 +315,7 @@
 
     public List<String> getParameterList(boolean includeAnnotation) {
         List<String> list = new ArrayList<String>();
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         for (int i = 0; i < parameters.size(); i++) {
             JavaParameter parameter = parameters.get(i);
             if (includeAnnotation && parameter.getAnnotations().size() > 0) {
@@ -343,7 +343,7 @@
     }
 
     public String toString() {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         sb.append("\n========================\n");
         sb.append("\nMethod:");
         sb.append(getName());

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaParameter.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaParameter.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaParameter.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaParameter.java Wed Nov 11 20:42:32 2009
@@ -88,7 +88,7 @@
     }
 
     public String toString() {
-        final StringBuffer sb = new StringBuffer();
+        final StringBuilder sb = new StringBuilder();
         sb.append(super.toString());
         if (holder) {
             sb.append("\nIS Holder: [Holder Name]:");

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaPort.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaPort.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaPort.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaPort.java Wed Nov 11 20:42:32 2009
@@ -152,7 +152,7 @@
     }
 
     public String getFullClassName() {
-        StringBuffer sb = new StringBuffer();
+        StringBuilder sb = new StringBuilder();
         if (!StringUtils.isEmpty(getPackageName())) {
             sb.append(getPackageName());
             sb.append(".");

Modified: cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaType.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaType.java?rev=835056&r1=835055&r2=835056&view=diff
==============================================================================
--- cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaType.java (original)
+++ cxf/trunk/tools/common/src/main/java/org/apache/cxf/tools/common/model/JavaType.java Wed Nov 11 20:42:32 2009
@@ -216,7 +216,7 @@
     }
 
     public String toString() {
-        final StringBuffer sb = new StringBuffer();
+        final StringBuilder sb = new StringBuilder();
         sb.append("\nName: ");
         sb.append(this.name);
         sb.append("\nType: ");



Mime
View raw message