/src/main/java/net/finmath/optimizer/LevenbergMarquardt.java
final Future<double[]> valueFuture = executor.submit( 3) ;
final Future<double[]> valueFuture = executor.submit ( worker ) ;
} } return derivative; } }; if(executor != null) { <extra_id_0> valueFutures.add(parameterIndex, valueFuture); } else { final FutureTask<double[]> valueFutureTask = new FutureTask<>(worker); valueFutureTask.run(); valueFutures.add(parameterIndex, valueFutureTask);