src/java.base/share/classes/sun/security/ssl/EngineOutputRecord.java

Print this page

        

@@ -111,13 +111,11 @@
     void writeBuffer(OutputStream s, byte [] buf, int off, int len,
             int debugOffset) throws IOException {
         /*
          * Copy data out of buffer, it's ready to go.
          */
-        ByteBuffer netBB = (ByteBuffer)
-            ByteBuffer.allocate(len).put(buf, off, len).flip();
-
+        ByteBuffer netBB = ByteBuffer.allocate(len).put(buf, off, len).flip();
         writer.putOutboundData(netBB);
     }
 
     /*
      * Main method for writing non-application data.