mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-05 18:42:55 +00:00
bug6241: moved field initialization into constructor
This commit is contained in:
1 parent
82b50e9f22
commit
598564f2c4
1 file changed
+2
-1
+2
-1
@@ -28,13 +28,14 @@ public abstract class AbstractParallelProcessor<InputType, ResultType> extends A
|
||||
private final Processor<ResultType, ?>[] resultReceivers;
|
||||
private final ExecutorService executor;
|
||||
private final AtomicInteger unfinishedInstructionsCounter;
|
||||
private final Set<Runnable> callbacksWhenNoMoreUnfinishedInstructions = Collections.newSetFromMap(new ConcurrentHashMap<Runnable, Boolean>());
|
||||
private final Set<Runnable> callbacksWhenNoMoreUnfinishedInstructions;
|
||||
|
||||
private boolean isFinished = false;
|
||||
private boolean isAborted = false;
|
||||
|
||||
public AbstractParallelProcessor(Class<InputType> inputType, Class<ResultType> resultType, ExecutorService executor, Collection<Processor<ResultType, ?>> resultReceivers) {
|
||||
super(inputType, resultType);
|
||||
this.callbacksWhenNoMoreUnfinishedInstructions = Collections.newSetFromMap(new ConcurrentHashMap<Runnable, Boolean>());
|
||||
this.executor = executor;
|
||||
@SuppressWarnings("unchecked")
|
||||
final Processor<ResultType, ?>[] resultReceiversAsArray = (Processor<ResultType, ?>[]) new Processor<?, ?>[resultReceivers.size()];
|
||||
|
||||
Reference in new issue
Block a user