< prev index next >

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

Print this page
rev 15365 : imported patch 8163517-Various-cleanup-in-java-io-code

@@ -185,11 +185,11 @@
      * have been copied into it.
      *
      * @return  the current contents of this output stream, as a byte array.
      * @see     java.io.ByteArrayOutputStream#size()
      */
-    public synchronized byte toByteArray()[] {
+    public synchronized byte[] toByteArray() {
         return Arrays.copyOf(buf, count);
     }
 
     /**
      * Returns the current size of the buffer.
< prev index next >