You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2019/11/21 22:48:02 UTC
svn commit: r1870123 - in /xmlbeans/trunk:
src/common/org/apache/xmlbeans/impl/common/
src/typeimpl/org/apache/xmlbeans/impl/validator/
src/xmlcomp/org/apache/xmlbeans/impl/tool/
src/xmlconfig/org/apache/xmlbeans/impl/config/ test/src/xmlobject/extensi...
Author: fanningpj
Date: Thu Nov 21 22:48:02 2019
New Revision: 1870123
URL: http://svn.apache.org/viewvc?rev=1870123&view=rev
Log:
replace some StringBuffers
Modified:
xmlbeans/trunk/src/common/org/apache/xmlbeans/impl/common/NameUtil.java
xmlbeans/trunk/src/common/org/apache/xmlbeans/impl/common/XmlObjectList.java
xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/validator/Validator.java
xmlbeans/trunk/src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java
xmlbeans/trunk/src/xmlconfig/org/apache/xmlbeans/impl/config/InterfaceExtensionImpl.java
xmlbeans/trunk/test/src/xmlobject/extensions/interfaceFeature/methodNameCollision/existing/FooHandler.java
xmlbeans/trunk/test/tools/src/tools/util/Util.java
Modified: xmlbeans/trunk/src/common/org/apache/xmlbeans/impl/common/NameUtil.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/common/org/apache/xmlbeans/impl/common/NameUtil.java?rev=1870123&r1=1870122&r2=1870123&view=diff
==============================================================================
--- xmlbeans/trunk/src/common/org/apache/xmlbeans/impl/common/NameUtil.java (original)
+++ xmlbeans/trunk/src/common/org/apache/xmlbeans/impl/common/NameUtil.java Thu Nov 21 22:48:02 2019
@@ -518,7 +518,7 @@ public class NameUtil
}
}
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
for (Iterator it = result.iterator(); it.hasNext(); )
{
String part = nonJavaKeyword(lowerCamelCase((String)it.next(), useJaxRpcRules, true));
@@ -549,7 +549,7 @@ public class NameUtil
*/
public static String upperCaseUnderbar(String xml_name)
{
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
List words = splitWords(xml_name, false);
final int sz = words.size() - 1;
@@ -595,7 +595,7 @@ public class NameUtil
*/
public static String upperCamelCase(String xml_name, boolean useJaxRpcRules)
{
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
List words = splitWords(xml_name, useJaxRpcRules);
if (words.size() > 0)
@@ -630,7 +630,7 @@ public class NameUtil
public static String lowerCamelCase(String xml_name, boolean useJaxRpcRules,
boolean fixGeneratedName)
{
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
List words = splitWords(xml_name, useJaxRpcRules);
if (words.size() > 0)
Modified: xmlbeans/trunk/src/common/org/apache/xmlbeans/impl/common/XmlObjectList.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/common/org/apache/xmlbeans/impl/common/XmlObjectList.java?rev=1870123&r1=1870122&r2=1870123&view=diff
==============================================================================
--- xmlbeans/trunk/src/common/org/apache/xmlbeans/impl/common/XmlObjectList.java (original)
+++ xmlbeans/trunk/src/common/org/apache/xmlbeans/impl/common/XmlObjectList.java Thu Nov 21 22:48:02 2019
@@ -120,7 +120,7 @@ public class XmlObjectList
}
public String toString() {
- StringBuffer b = new StringBuffer();
+ StringBuilder b = new StringBuilder();
for (int i = 0 ; i < _objects.length ; i++)
{
Modified: xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/validator/Validator.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/validator/Validator.java?rev=1870123&r1=1870122&r2=1870123&view=diff
==============================================================================
--- xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/validator/Validator.java (original)
+++ xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/validator/Validator.java Thu Nov 21 22:48:02 2019
@@ -910,7 +910,7 @@ public final class Validator
if (names.size() > 0)
{
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
for (Iterator iter = names.iterator(); iter.hasNext();)
{
QName qname = (QName) iter.next();
@@ -957,7 +957,7 @@ public final class Validator
if (names.size() > 0)
{
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
for (Iterator iter = names.iterator(); iter.hasNext();)
{
QName qname = (QName) iter.next();
Modified: xmlbeans/trunk/src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java?rev=1870123&r1=1870122&r2=1870123&view=diff
==============================================================================
--- xmlbeans/trunk/src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java (original)
+++ xmlbeans/trunk/src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java Thu Nov 21 22:48:02 2019
@@ -618,7 +618,7 @@ public class XMLBean extends MatchingTas
if (mdefnamespaces == null) {
return null;
}
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
Iterator i = mdefnamespaces.iterator();
while (i.hasNext()) {
buf.append((String)i.next());
Modified: xmlbeans/trunk/src/xmlconfig/org/apache/xmlbeans/impl/config/InterfaceExtensionImpl.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/xmlconfig/org/apache/xmlbeans/impl/config/InterfaceExtensionImpl.java?rev=1870123&r1=1870122&r2=1870123&view=diff
==============================================================================
--- xmlbeans/trunk/src/xmlconfig/org/apache/xmlbeans/impl/config/InterfaceExtensionImpl.java (original)
+++ xmlbeans/trunk/src/xmlconfig/org/apache/xmlbeans/impl/config/InterfaceExtensionImpl.java Thu Nov 21 22:48:02 2019
@@ -262,7 +262,7 @@ public class InterfaceExtensionImpl impl
public String toString()
{
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
buf.append(" static handler: ").append(_delegateToClassName).append("\n");
buf.append(" interface: ").append(_interfaceClassName).append("\n");
buf.append(" name set: ").append(_xbeanSet).append("\n");
@@ -401,7 +401,7 @@ public class InterfaceExtensionImpl impl
public String toString()
{
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
buf.append(getReturnType()).append(" ").append(getSignature());
Modified: xmlbeans/trunk/test/src/xmlobject/extensions/interfaceFeature/methodNameCollision/existing/FooHandler.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/test/src/xmlobject/extensions/interfaceFeature/methodNameCollision/existing/FooHandler.java?rev=1870123&r1=1870122&r2=1870123&view=diff
==============================================================================
--- xmlbeans/trunk/test/src/xmlobject/extensions/interfaceFeature/methodNameCollision/existing/FooHandler.java (original)
+++ xmlbeans/trunk/test/src/xmlobject/extensions/interfaceFeature/methodNameCollision/existing/FooHandler.java Thu Nov 21 22:48:02 2019
@@ -24,7 +24,7 @@ public class FooHandler {
}
public static String getName2(XmlObject xo, int[][] ints){
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
buf.append("Name2: ");
for (int i = 0; i < ints.length; i++)
{
Modified: xmlbeans/trunk/test/tools/src/tools/util/Util.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/test/tools/src/tools/util/Util.java?rev=1870123&r1=1870122&r2=1870123&view=diff
==============================================================================
--- xmlbeans/trunk/test/tools/src/tools/util/Util.java (original)
+++ xmlbeans/trunk/test/tools/src/tools/util/Util.java Thu Nov 21 22:48:02 2019
@@ -768,7 +768,7 @@ public class Util
public static String gobbleUpReader(Reader in)
throws Exception
{
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
int c;
while (-1 != (c = in.read()))
@@ -1126,7 +1126,7 @@ public class Util
return str;
int last = 0;
- StringBuffer buf = new StringBuffer();
+ StringBuilder buf = new StringBuilder();
Matcher m = p.matcher(str);
while (m.find())
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org