METHOD_0 ( ) { IDENT_0 = new com . IDENT_1 . IDENT_2 . METHOD_1 ( IDENT_3 , STRING_0 , IDENT_4 . IDENT_5 ) ; final long IDENT_6 = INT_0 ; java . lang . Thread IDENT_7 = new java . lang . Thread ( new java . lang . METHOD_2 ( ) { MOD_0 com . IDENT_1 . IDENT_2 . Long item = 1L ; @ com . IDENT_1 . IDENT_2 . Override public void run ( ) { for ( long i = 0 ; i < IDENT_6 ; i ++ ) try { IDENT_0 . METHOD_3 ( item . toString ( ) . getBytes ( ) ) ; ( item ) ++ ; java . lang . Thread . METHOD_4 ( ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; } } } ) ; java . lang . Thread IDENT_8 = new java . lang . Thread ( new java . lang . METHOD_2 ( ) { MOD_0 long item = 0L ; @ com . IDENT_1 . IDENT_2 . Override public void run ( ) { for ( long i = 0 ; i < IDENT_6 ; i ++ ) try { if ( ( IDENT_0 . size ( ) ) > 0 ) { byte [ ] bytes = IDENT_0 . METHOD_5 ( ) ; java . lang . String str = new java . lang . String ( bytes ) ; long IDENT_9 = java . lang . Long . METHOD_6 ( str ) ; "<AssertPlaceHolder>" ; item = IDENT_9 ; } java . lang . Thread . METHOD_4 ( ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; } } } ) ; IDENT_8 . start ( ) ; IDENT_7 . start ( ) ; for ( long i = 0 ; i < IDENT_6 ; i += IDENT_6 / 100 ) { com . IDENT_1 . IDENT_2 . IDENT_10 . IDENT_11 IDENT_12 = new com . IDENT_1 . IDENT_2 . IDENT_10 . METHOD_7 ( ) ; IDENT_0 . METHOD_8 ( IDENT_12 ) ; System . out . println ( ( ( ( STRING_1 + ( IDENT_12 . METHOD_9 ( ) ) ) + STRING_2 ) + ( IDENT_12 . toString ( ) ) ) ) ; java . lang . Thread . sleep ( 2 ) ; } IDENT_7 . join ( ) ; IDENT_8 . join ( ) ; } METHOD_5 ( ) { long IDENT_13 = - 1L ; try { IDENT_14 . METHOD_10 ( ) ; if ( this . isEmpty ( ) ) { return null ; } IDENT_13 = this . IDENT_13 . get ( ) ; byte [ ] data = this . IDENT_15 . get ( IDENT_13 ) ; long IDENT_16 = IDENT_13 ; if ( IDENT_16 == ( Long . MAX_VALUE ) ) { IDENT_16 = 0L ; } else { IDENT_16 ++ ; } this . IDENT_13 . set ( IDENT_16 ) ; com . IDENT_1 . IDENT_2 . page . IDENT_17 IDENT_18 = this . IDENT_19 . METHOD_11 ( com . IDENT_1 . IDENT_2 . METHOD_1 . IDENT_20 ) ; java . nio . ByteBuffer IDENT_21 = IDENT_18 . METHOD_12 ( 0 ) ; IDENT_21 . METHOD_13 ( IDENT_16 ) ; IDENT_18 . METHOD_14 ( true ) ; return data ; } finally { IDENT_14 . METHOD_15 ( ) ; } }
org . junit . Assert . assertEquals ( ( ( item ) + 1 ) , IDENT_9 )