@@ -518,14 +518,14 @@ private Framedata translateSingleFrame( ByteBuffer buffer ) throws IncompleteExc
518518 * @param optcode the decoded optcode
519519 * @param oldPayloadlength the old payload length
520520 * @param maxpacketsize the max packet size allowed
521- * @param realpacketsize the real packet size
521+ * @param oldRealpacketsize the real packet size
522522 * @return the new payload data containing new payload length and new packet size
523523 * @throws InvalidFrameException thrown if a control frame has an invalid length
524524 * @throws IncompleteException if the maxpacketsize is smaller than the realpackagesize
525525 * @throws LimitExceededException if the payload length is to big
526526 */
527- private TranslatedPayloadMetaData translateSingleFramePayloadLength (ByteBuffer buffer , Opcode optcode , int oldPayloadlength , int maxpacketsize , int realpacketsize ) throws InvalidFrameException , IncompleteException , LimitExceededException {
528- int payloadlength = oldPayloadlength ;
527+ private TranslatedPayloadMetaData translateSingleFramePayloadLength (ByteBuffer buffer , Opcode optcode , int oldPayloadlength , int maxpacketsize , int oldRealpacketsize ) throws InvalidFrameException , IncompleteException , LimitExceededException {
528+ int payloadlength = oldPayloadlength , realpacketsize = oldRealpacketsize ;
529529 if ( optcode == Opcode .PING || optcode == Opcode .PONG || optcode == Opcode .CLOSING ) {
530530 log .trace ( "Invalid frame: more than 125 octets" );
531531 throw new InvalidFrameException ( "more than 125 octets" );
@@ -1042,11 +1042,11 @@ private class TranslatedPayloadMetaData {
10421042 private int payloadLength ;
10431043 private int realPackageSize ;
10441044
1045- int getPayloadLength () {
1045+ private int getPayloadLength () {
10461046 return payloadLength ;
10471047 }
10481048
1049- int getRealPackageSize () {
1049+ private int getRealPackageSize () {
10501050 return realPackageSize ;
10511051 }
10521052
0 commit comments