< prev index next >

src/java.base/share/classes/java/net/SocketOutputStream.java

Print this page

        

@@ -42,11 +42,11 @@
     static {
         init();
     }
 
     private AbstractPlainSocketImpl impl = null;
-    private byte temp[] = new byte[1];
+    private byte[] temp = new byte[1];
     private Socket socket = null;
 
     /**
      * Creates a new SocketOutputStream. Can only be called
      * by a Socket. This method needs to hang on to the owner Socket so

@@ -92,11 +92,11 @@
      * @param b the data to be written
      * @param off the start offset in the data
      * @param len the number of bytes that are written
      * @exception IOException If an I/O error has occurred.
      */
-    private void socketWrite(byte b[], int off, int len) throws IOException {
+    private void socketWrite(byte[] b, int off, int len) throws IOException {
 
 
         if (len <= 0 || off < 0 || len > b.length - off) {
             if (len == 0) {
                 return;

@@ -132,11 +132,11 @@
     /**
      * Writes the contents of the buffer <i>b</i> to the socket.
      * @param b the data to be written
      * @exception SocketException If an I/O error has occurred.
      */
-    public void write(byte b[]) throws IOException {
+    public void write(byte[] b) throws IOException {
         socketWrite(b, 0, b.length);
     }
 
     /**
      * Writes <i>length</i> bytes from buffer <i>b</i> starting at

@@ -144,11 +144,11 @@
      * @param b the data to be written
      * @param off the start offset in the data
      * @param len the number of bytes that are written
      * @exception SocketException If an I/O error has occurred.
      */
-    public void write(byte b[], int off, int len) throws IOException {
+    public void write(byte[] b, int off, int len) throws IOException {
         socketWrite(b, off, len);
     }
 
     /**
      * Closes the stream.
< prev index next >