/src/main/java/net/finmath/optimizer/StochasticPathwiseLevenbergMarquardt.java
valueFutureTask.run( ) ; final FutureTask<RandomVariable[]> valueFutureTask = new FutureTask<>( worker) ;
final FutureTask<RandomVariable[]> valueFutureTask = new FutureTask<> ( worker ) ; valueFutureTask.run ( ) ;
}; if(executor != null) { final Future<RandomVariable[]> valueFuture = executor.submit(worker); valueFutures.add(parameterIndex, valueFuture); } else { <extra_id_0> valueFutures.add(parameterIndex, valueFutureTask); } } for (int parameterIndex = 0; parameterIndex < parameterCurrent.length; parameterIndex++) { try { derivatives[parameterIndex] = valueFutures.get(parameterIndex).get();