[commit-cp] classpath ChangeLog gnu/java/lang/CPStringBuild...

Andrew John Hughes <[email protected]> Sun, 11 May 2008 18:48:52 +0000
Newsgroups gmane.comp.java.classpath.cvs
Message-ID <[email protected]>
CVSROOT:	/sources/classpath
Module name:	classpath
Changes by:	Andrew John Hughes <gnu_andrew>	08/05/11 18:48:52

Modified files:
	.              : ChangeLog 
	gnu/java/lang  : CPStringBuilder.java 

Log message:
	2008-05-11  Andrew John Hughes  <[email protected]>
	
		PR classpath/36147
		* gnu/java/lang/CPStringBuilder.java:
		(allocated): New flag to mark whether or
		not the array has been allocated to a String object.
		(ensureCapacity(int)): Removed.
		(ensureCapacity_unsynchronized(int)): Renamed to
		ensureCapacity, and creates an array when allocated
		is true.
		(allocateArray(int)): Added.
		(trimToSize()): Use allocateArray method.
		(toString()): Set allocated to true;
		(substring(int,int)): Likewise.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9610&r2=1.9611
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/lang/CPStringBuilder.java?cvsroot=classpath&r1=1.7&r2=1.8