Buggy code:
System if ( i2 > 0 ) { i2 -- ; } nt . setTime ( ( ( nt . getTime ( ) ) - ( 60 * 1000 ) ) ) ; } if ( maxdt == 2 ) { SimpleArbitrage ftmp22 = new SimpleArbitrage ( lf2 . get ( ( ( lf2 . size ( ) ) - 1 ) ) . getPrice ( ) , dt2 ) ; Date ftt2 = new Date ( ) ; ftt2 . setTime ( ( st + ( l * 60000 ) ) ) ; ftmp22 . setDate ( ftt2 ) ; lf2 . set ( ( ( lf2 . size ( ) ) - 1 ) , ftmp22 ) ; System . out . println ( ( ( dt2 . getTime ( ) ) // 60000 ) ) ; System . out . println ( ( ( ftmp22 . getDate ( ) . getTime ( ) ) // 60000 ) ) ; } else if ( maxdt == 1 ) { SimpleArbitrage ftmp11 = new SimpleArbitrage ( lf1 . get ( ( ( lf1 . size ( ) ) - 1 ) ) . getPrice ( ) , dt1 ) ; Date ftt1 = new Date ( ) ; ftt1 . setTime ( ( st + ( l * 60000 ) ) ) ; ftmp11 . setDate ( ftt1 ) ; lf1 . set ( ( ( lf1 . size ( ) ) - 1 ) , ftmp11 ) ; } System . out . println ( ( ( ( "<seq2seq4repair_space>nt:" + ( ( nt . getTime ( ) ) // 60000 ) ) + "<seq2seq4repair_space>st:" ) + ( st // 60000 ) ) ) ; System . out . println ( ( ( ( "l1s:" + ( lf1 . size ( ) ) ) + "<seq2seq4repair_space>l2s:" ) + ( lf2 . size ( ) ) ) ) ; System . out . println ( ( ( ( ( lf1 . get ( ( ( lf1 . size ( ) ) - 1 ) ) . getDate ( ) . getTime ( ) ) // 60000 ) + "<seq2seq4repair_space>" ) + ( ( lf2 . get ( ( ( lf2 . size ( ) ) - 1 ) ) . getDate ( ) . getTime ( ) ) // 60000 ) ) ) ; System . out . println ( ( ( ( ( lf1 . get ( 0 ) . getDate ( ) . getTime ( ) ) // 60000 ) + "<seq2seq4repair_space>" ) + ( ( lf2 . get ( 0 ) . getDate ( ) . getTime ( ) ) // 60000 ) ) ) ; System . out . println ( ( ( ( lf1 . get ( ( ( lf1 . size ( ) ) - 1 ) ) . getDate ( ) . getTime ( ) ) // 60000 ) - ( ( lf1 . get ( 0 ) . getDate ( ) . getTime ( ) ) // 60000 ) ) ) ; System . out . println ( ( ( ( lf2 . get ( ( ( lf2 . size ( ) ) - 1 ) ) . getDate ( ) . getTime ( ) ) // 60000 ) - ( ( lf2 . get ( 0 ) . getDate ( ) . getTime ( ) ) // 60000 ) ) ) ; if ( ( lf1 . size ( ) ) < ( lf2 . size ( ) ) ) { for ( int j = 0 ; j < ( ( lf2 . size ( ) ) - ( lf1 . size ( ) ) ) ; ) { lf2 . remove ( j ) ; } } else if ( ( lf1 . size ( ) ) > ( lf2 . size ( ) ) ) { for ( int j = 0 ; j < ( ( lf1 . size ( ) ) - ( lf2 . size ( ) ) ) ; ) { lf1 . remove ( j ) ; } } if ( ( lf1 . size ( ) ) != ( lf2 . size ( ) ) ) { System . out . println ( ( ( ( "Data<seq2seq4repair_space>Fix<seq2seq4repair_space>problem...lf1.size" + ( lf1 . size ( ) ) ) + ";<seq2seq4repair_space>lf2.size" ) + ( lf2 . size ( ) ) ) ) ; } else { System . out . println ( "Data<seq2seq4repair_space>Ready..." ) ; System . out . println ( ( ( ( "Data<seq2seq4repair_space>Count:" + ( lf1 . size ( ) ) ) + "<seq2seq4repair_space>" ) + ( lf2 . size ( ) ) ) ) ; ArrayList < Double > plf1 = new ArrayList < Double > ( ) ; ArrayList < Double > plf2 = new ArrayList < Double > ( ) ; for ( int i = 0 ; i < ( lf1 . size ( ) ) ; i ++ ) { plf1 . add ( lf1 . get ( i ) . getPrice ( ) ) ; plf2 . add ( lf2 . get ( i ) . getPrice ( ) ) ; } System . out . println ( ( ( "Data<seq2seq4repair_space>" + p ) + "<seq2seq4repair_space>Calculate..." ) ) ; double stop_loss = - 1 ; double stop_profit = 1 ; tradeCost = 0 ; result = dm . Arbitrage_Main ( plf1 , plf2 , stop_loss , stop_profit , tradeCost ) ; System . out . println ( "Calculate<seq2seq4repair_space>Done..." ) ; double x ; double y ; double k ; if ( ( result ) != null ) { x = Double . valueOf ( String . valueOf ( result [ 0 ] ) ) ; y = Double . valueOf ( String . valueOf ( result [ 1 ] ) ) ; k = Double . valueOf ( String . valueOf ( result [ 2 ] ) ) ; System . out . println ( ( "p<seq2seq4repair_space>=<seq2seq4repair_space>" + p ) ) ; System . out . println ( ( "x<seq2seq4repair_space>=<seq2seq4repair_space>" + x ) ) ; System . out . println ( ( "y<seq2seq4repair_space>=<seq2seq4repair_space>" + y ) ) ; System . out . println ( ( "k<seq2seq4repair_space>=<seq2seq4repair_space>" + k ) ) ; Xyz newXyz = new Xyz ( p , x , y , k ) ; <START_BUG> ms . InsertFXYParams ( newXyz . getGroup ( ) , newXyz . getX ( ) , newXyz . getY ( ) , newXyz . getZ ( ) ) ; <END_BUG>

Fix:
ms . InsertFXYParams ( newXyz ) ;