< prev index next >

src/java.base/share/classes/java/io/StringWriter.java

Print this page

        

@@ -87,11 +87,11 @@
      * @throws  IndexOutOfBoundsException
      *          If {@code off} is negative, or {@code len} is negative,
      *          or {@code off + len} is negative or greater than the length
      *          of the given array
      */
-    public void write(char cbuf[], int off, int len) {
+    public void write(char[] cbuf, int off, int len) {
         if ((off < 0) || (off > cbuf.length) || (len < 0) ||
             ((off + len) > cbuf.length) || ((off + len) < 0)) {
             throw new IndexOutOfBoundsException();
         } else if (len == 0) {
             return;
< prev index next >