[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-cvs
Subject: svn commit: r1507081 - /xerces/java/trunk/src/org/apache/xerces/util/XMLStringBuffer.java
From: mrglavas () apache ! org
Date: 2013-07-25 18:13:37
Message-ID: 20130725181337.718B323888E4 () eris ! apache ! org
[Download RAW message or body]
Author: mrglavas
Date: Thu Jul 25 18:13:37 2013
New Revision: 1507081
URL: http://svn.apache.org/r1507081
Log:
Improving code formatting.
Modified:
xerces/java/trunk/src/org/apache/xerces/util/XMLStringBuffer.java
Modified: xerces/java/trunk/src/org/apache/xerces/util/XMLStringBuffer.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/util/XMLStringBuffer.java?rev=1507081&r1=1507080&r2=1507081&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/util/XMLStringBuffer.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/util/XMLStringBuffer.java Thu Jul 25 \
18:13:37 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