Changeset 1391 for branches/GNU/src/gcc/libjava/java/lang/StringBuffer.java
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
libjava/java/lang/StringBuffer.java (modified) (1 diff, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libjava/java/lang/StringBuffer.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 309 309 } 310 310 311 /** Get the specified array of characters. 312 * The characters will be copied into the array you pass in. 313 * @param srcOffset the index to start copying from in the 314 * <code>StringBuffer</code>. 315 * @param srcEnd the number of characters to copy. 316 * @param dst the array to copy into. 317 * @param dstOffset the index to start copying into <code>dst</code>. 318 * @exception NullPointerException if dst is null. 319 * @exception IndexOutOfBoundsException if any source or target 320 * indices are out of range. 321 * @see java.lang.System#arraycopy(java.lang.Object,int,java.lang.Object,int,int) 322 */ 323 public synchronized void getChars (int srcOffset, int srcEnd, 324 char[] dst, int dstOffset) 325 { 326 if (srcOffset < 0 || srcOffset > srcEnd) 327 throw new StringIndexOutOfBoundsException (srcOffset); 311 /** 312 * Get the specified array of characters. <code>srcOffset - srcEnd</code> 313 * characters will be copied into the array you pass in. 314 * 315 * @param srcOffset the index to start copying from (inclusive) 316 * @param srcEnd the index to stop copying from (exclusive) 317 * @param dst the array to copy into 318 * @param dstOffset the index to start copying into 319 * @throws NullPointerException if dst is null 320 * @throws IndexOutOfBoundsException if any source or target indices are 321 * out of range (while unspecified, source problems cause a 322 * StringIndexOutOfBoundsException, and dest problems cause an 323 * ArrayIndexOutOfBoundsException) 324 * @see System#arraycopy(Object, int, Object, int, int) 325 */ 326 public synchronized void getChars(int srcOffset, int srcEnd, 327 char[] dst, int dstOffset) 328 { 328 329 int todo = srcEnd - srcOffset; 329 if (src End > count || dstOffset + todo > count)330 throw new StringIndexOutOfBoundsException (srcEnd);330 if (src) 331 throw new StringIndexOutOfBoundsException); 331 332 System.arraycopy(value, srcOffset, dst, dstOffset, todo); 332 333 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
