[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-cvs
Subject: svn commit: r1507082 - /xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/XMLString
From: mrglavas () apache ! org
Date: 2013-07-25 18:14:29
Message-ID: 20130725181429.6456F23888E7 () eris ! apache ! org
[Download RAW message or body]
Author: mrglavas
Date: Thu Jul 25 18:14:29 2013
New Revision: 1507082
URL: http://svn.apache.org/r1507082
Log:
Improving code formatting.
Modified:
xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/XMLStringBuffer.java
Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/XMLStringBuffer.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/XMLStringBuffer.java?rev=1507082&r1=1507081&r2=1507082&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/XMLStringBuffer.java \
(original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/util/XMLStringBuffer.java \
Thu Jul 25 18:14:29 2013 @@ -111,12 +111,13 @@ public class XMLStringBuffer
*/
public void append(char c) {
if (this.length + 1 > this.ch.length) {
- int newLength = this.ch.length*2;
- if (newLength < this.ch.length + DEFAULT_SIZE)
- newLength = this.ch.length + DEFAULT_SIZE;
- char[] newch = new char[newLength];
- System.arraycopy(this.ch, 0, newch, 0, this.length);
- this.ch = newch;
+ int newLength = this.ch.length * 2;
+ if (newLength < this.ch.length + DEFAULT_SIZE) {
+ newLength = this.ch.length + DEFAULT_SIZE;
+ }
+ char[] newch = new char[newLength];
+ System.arraycopy(this.ch, 0, newch, 0, this.length);
+ this.ch = newch;
}
this.ch[this.length] = c;
this.length++;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic