--- old/src/share/classes/sun/security/ssl/EngineOutputRecord.java 2014-04-20 19:40:13.908106106 +0100 +++ new/src/share/classes/sun/security/ssl/EngineOutputRecord.java 2014-04-20 19:40:13.812106102 +0100 @@ -113,9 +113,7 @@ /* * 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); }