[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] classpath ./ChangeLog java/lang/String.java
From: |
Anthony Balkissoon |
Subject: |
[commit-cp] classpath ./ChangeLog java/lang/String.java |
Date: |
Mon, 07 Nov 2005 15:50:56 -0500 |
CVSROOT: /cvsroot/classpath
Module name: classpath
Branch:
Changes by: Anthony Balkissoon <address@hidden> 05/11/07 20:50:56
Modified files:
. : ChangeLog
java/lang : String.java
Log message:
2005-11-07 Anthony Balkissoon <address@hidden>
* java/lang/String.java:
(replace): Use a StringBuffer instead of String. Only search for new
occurrences of the target that occur AFTER the text just inserted, so
if the replacement string contains the target string we won't go into
an infinite loop. Use local variables instead of repeated calls to
length() and toString().
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/ChangeLog.diff?tr1=1.5496&tr2=1.5497&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/classpath/classpath/java/lang/String.java.diff?tr1=1.74&tr2=1.75&r1=text&r2=text