METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . impl . IDENT_2 IDENT_3 = new com . IDENT_0 . IDENT_1 . impl . METHOD_1 ( STRING_0 , com . IDENT_0 . IDENT_1 . IDENT_4 . METHOD_2 ( 1 ) , INT_0 , ( ( short ) ( 1 ) ) ) ; final com . IDENT_0 . IDENT_1 . impl . IDENT_5 IDENT_6 = new com . IDENT_0 . IDENT_1 . impl . METHOD_3 ( 1 , IDENT_3 ) ; class IDENT_7 implements java . lang . IDENT_8 { MOD_0 final int index ; MOD_0 final com . IDENT_9 . nio . IDENT_10 address ; MOD_0 final java . util . concurrent . atomic . IDENT_11 IDENT_12 ; MOD_0 final java . util . concurrent . IDENT_13 start ; MOD_0 final java . util . concurrent . IDENT_13 end ; METHOD_4 ( int index , com . IDENT_9 . nio . IDENT_10 address , java . util . concurrent . atomic . IDENT_11 IDENT_12 , java . util . concurrent . IDENT_13 start , java . util . concurrent . IDENT_13 end ) { this . index = index ; this . address = address ; this . IDENT_12 = IDENT_12 ; this . start = start ; this . end = end ; } @ com . IDENT_0 . IDENT_1 . impl . Override public void run ( ) { try { start . METHOD_5 ( ) ; int IDENT_14 = IDENT_6 . METHOD_6 ( address ) ; IDENT_12 . set ( index , IDENT_14 ) ; } catch ( java . lang . IDENT_15 e ) { e . printStackTrace ( ) ; } finally { end . METHOD_7 ( ) ; } } } int IDENT_16 = 100 ; java . util . concurrent . IDENT_13 start = new java . util . concurrent . METHOD_8 ( 1 ) ; java . util . concurrent . METHOD_8 end = new java . util . concurrent . METHOD_8 ( IDENT_16 ) ; java . util . concurrent . atomic . IDENT_11 IDENT_12 = new java . util . concurrent . atomic . METHOD_9 ( IDENT_16 ) ; for ( int i = 0 ; i < IDENT_16 ; i ++ ) { com . IDENT_9 . nio . IDENT_10 address = new com . IDENT_9 . nio . METHOD_10 ( STRING_1 , ( 1000 + i ) ) ; new java . lang . Thread ( new METHOD_4 ( i , address , IDENT_12 , start , end ) ) . start ( ) ; } start . METHOD_7 ( ) ; end . METHOD_5 ( ) ; java . util . Set < java . lang . Integer > IDENT_17 = new java . util . HashSet < java . lang . Integer > ( ) ; for ( int i = 0 ; i < IDENT_16 ; i ++ ) { IDENT_17 . add ( IDENT_12 . get ( i ) ) ; } "<AssertPlaceHolder>" ; } METHOD_6 ( com . IDENT_9 . nio . METHOD_10 ) { while ( true ) { java . lang . Object [ ] IDENT_18 = this . IDENT_18 ; int IDENT_19 = METHOD_11 ( IDENT_18 ) ; if ( IDENT_19 == ( - 1 ) ) { throw new com . IDENT_0 . IDENT_1 . METHOD_12 ( ) ; } long offset = offset ( IDENT_19 ) ; if ( com . IDENT_0 . IDENT_1 . impl . METHOD_3 . IDENT_20 . METHOD_13 ( IDENT_18 , offset , null , address ) ) { return IDENT_19 ; } } }
org . junit . Assert . assertEquals ( IDENT_16 , IDENT_17 . size ( ) )