METHOD_0 ( ) { final org . apache . hc . core5 . IDENT_0 . impl . nio . IDENT_1 IDENT_2 = new org . apache . hc . core5 . IDENT_0 . impl . nio . METHOD_1 ( ( 16 * INT_0 ) ) ; final org . apache . hc . core5 . IDENT_0 . IDENT_3 IDENT_4 = new org . apache . hc . core5 . IDENT_0 . METHOD_2 ( new byte [ ] { } ) ; "<AssertPlaceHolder>" ; IDENT_2 . read ( IDENT_4 ) ; } read ( java . nio . IDENT_5 . IDENT_6 ) { for ( ; ; ) { switch ( state ) { case IDENT_7 : if ( ( buffer . METHOD_3 ( ) ) >= ( org . apache . hc . core5 . IDENT_0 . IDENT_8 . IDENT_9 . IDENT_10 ) ) { final int IDENT_11 = buffer . METHOD_4 ( ) ; IDENT_12 = IDENT_11 > > 8 ; if ( ( IDENT_12 ) > ( IDENT_13 ) ) { throw new org . apache . hc . core5 . IDENT_0 . METHOD_5 ( org . apache . hc . core5 . IDENT_0 . IDENT_14 . IDENT_15 , STRING_0 ) ; } type = IDENT_11 & 255 ; IDENT_16 = buffer . get ( ) ; IDENT_17 = java . lang . Math . METHOD_6 ( buffer . METHOD_4 ( ) ) ; state = org . apache . hc . core5 . IDENT_0 . impl . nio . METHOD_1 . IDENT_18 . IDENT_19 ; } else { break ; } case IDENT_19 : if ( ( buffer . METHOD_3 ( ) ) >= ( IDENT_12 ) ) { if ( ( ( IDENT_16 ) & ( IDENT_20 . IDENT_21 . getValue ( ) ) ) > 0 ) { if ( ( IDENT_12 ) == 0 ) { throw new org . apache . hc . core5 . IDENT_0 . METHOD_5 ( org . apache . hc . core5 . IDENT_0 . IDENT_14 . IDENT_22 , STRING_1 ) ; } buffer . METHOD_7 ( ) ; final int IDENT_23 = buffer . get ( ) ; if ( ( IDENT_12 ) < ( IDENT_23 + 1 ) ) { throw new org . apache . hc . core5 . IDENT_0 . METHOD_5 ( org . apache . hc . core5 . IDENT_0 . IDENT_14 . IDENT_22 , STRING_1 ) ; } buffer . METHOD_8 ( ) ; } final java . nio . ByteBuffer payload = ( ( IDENT_12 ) > 0 ) ? java . nio . ByteBuffer . METHOD_9 ( bytes , buffer . position ( ) , IDENT_12 ) : null ; buffer . position ( ( ( buffer . position ( ) ) + ( IDENT_12 ) ) ) ; state = org . apache . hc . core5 . IDENT_0 . impl . nio . METHOD_1 . IDENT_18 . IDENT_7 ; metrics . METHOD_10 ( ) ; return new org . apache . hc . core5 . IDENT_0 . IDENT_8 . METHOD_11 ( type , IDENT_16 , IDENT_17 , payload ) ; } } if ( buffer . METHOD_12 ( ) ) { buffer . METHOD_13 ( ) ; } else { buffer . METHOD_14 ( ) ; } final int IDENT_24 = channel . read ( buffer ) ; buffer . METHOD_15 ( ) ; if ( IDENT_24 > 0 ) { metrics . METHOD_16 ( IDENT_24 ) ; } if ( IDENT_24 == 0 ) { break ; } else if ( IDENT_24 < 0 ) { if ( ( ( state ) != ( org . apache . hc . core5 . IDENT_0 . impl . nio . METHOD_1 . IDENT_18 . IDENT_7 ) ) || ( buffer . METHOD_12 ( ) ) ) { throw new org . apache . hc . core5 . IDENT_0 . METHOD_17 ( STRING_2 ) ; } else { throw new org . apache . hc . core5 . http . METHOD_18 ( ) ; } } } return null ; }
org . junit . Assert . assertEquals ( null , IDENT_2 . read ( IDENT_4 ) )