< prev index next >

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

Print this page

        

@@ -99,11 +99,11 @@
      * @param      off   the start offset in the data.
      * @param      len   the number of bytes to write.
      * @exception  IOException  if an I/O error occurs.
      * @see        java.io.FilterOutputStream#out
      */
-    public synchronized void write(byte b[], int off, int len)
+    public synchronized void write(byte[] b, int off, int len)
         throws IOException
     {
         out.write(b, off, len);
         incCount(len);
     }

@@ -199,11 +199,11 @@
         out.write((v >>>  8) & 0xFF);
         out.write((v >>>  0) & 0xFF);
         incCount(4);
     }
 
-    private byte writeBuffer[] = new byte[8];
+    private byte[] writeBuffer = new byte[8];
 
     /**
      * Writes a <code>long</code> to the underlying output stream as eight
      * bytes, high byte first. In no exception is thrown, the counter
      * <code>written</code> is incremented by <code>8</code>.
< prev index next >