/[classpath]/classpath/java/lang/String.java
ViewVC logotype

Diff of /classpath/java/lang/String.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.44 by ericb, Mon Mar 25 07:54:38 2002 UTC revision 1.45 by ericb, Tue Apr 30 08:03:51 2002 UTC
# Line 1081  public final class String implements Ser Line 1081  public final class String implements Ser
1081        return str;        return str;
1082      char[] newStr = new char[count + str.count];      char[] newStr = new char[count + str.count];
1083      System.arraycopy(value, offset, newStr, 0, count);      System.arraycopy(value, offset, newStr, 0, count);
1084      System.arraycopy(str.value, offset, newStr, count, str.count);      System.arraycopy(str.value, str.offset, newStr, count, str.count);
1085      // Package constructor avoids an array copy.      // Package constructor avoids an array copy.
1086      return new String(newStr, 0, newStr.length, true);      return new String(newStr, 0, newStr.length, true);
1087    }    }

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26