CVSROOT:        /cvsroot/classpath
Module name:    classpath
Branch:         
Changes by:     Anthony Balkissoon <[EMAIL PROTECTED]>  05/11/07 20:50:56

Modified files:
        .              : ChangeLog 
        java/lang      : String.java 

Log message:
        2005-11-07  Anthony Balkissoon  <[EMAIL PROTECTED]>
        
        * 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



Reply via email to