Sho SHIMIZU
Committed by Gerrit Code Review

Remove reference to a field of IntentManager from IntentWorker

Change-Id: I3ab69f3bcdaa92516783dec096a80220edfc55d5
...@@ -286,7 +286,7 @@ public class IntentManager ...@@ -286,7 +286,7 @@ public class IntentManager
286 286
287 private Future<FinalIntentProcessPhase> submitIntentData(IntentData data) { 287 private Future<FinalIntentProcessPhase> submitIntentData(IntentData data) {
288 IntentData current = store.getIntentData(data.key()); 288 IntentData current = store.getIntentData(data.key());
289 - return workerExecutor.submit(new IntentWorker(data, current)); 289 + return workerExecutor.submit(new IntentWorker(processor, data, current));
290 } 290 }
291 291
292 private class IntentBatchPreprocess implements Runnable { 292 private class IntentBatchPreprocess implements Runnable {
...@@ -366,10 +366,12 @@ public class IntentManager ...@@ -366,10 +366,12 @@ public class IntentManager
366 366
367 private final class IntentWorker implements Callable<FinalIntentProcessPhase> { 367 private final class IntentWorker implements Callable<FinalIntentProcessPhase> {
368 368
369 + private final IntentProcessor processor;
369 private final IntentData data; 370 private final IntentData data;
370 private final IntentData current; 371 private final IntentData current;
371 372
372 - private IntentWorker(IntentData data, IntentData current) { 373 + private IntentWorker(IntentProcessor processor, IntentData data, IntentData current) {
374 + this.processor = checkNotNull(processor);
373 this.data = checkNotNull(data); 375 this.data = checkNotNull(data);
374 this.current = current; 376 this.current = current;
375 } 377 }
......