Rearrange the method declaration order
Change-Id: I00e09be8d1f743a846d96c791cfcf40b104f5cc3
Showing
1 changed file
with
16 additions
and
16 deletions
... | @@ -286,22 +286,6 @@ public class IntentManager | ... | @@ -286,22 +286,6 @@ public class IntentManager |
286 | } | 286 | } |
287 | } | 287 | } |
288 | 288 | ||
289 | - private IntentProcessPhase createInitialPhase(IntentData data) { | ||
290 | - IntentData current = store.getIntentData(data.key()); | ||
291 | - return newInitialPhase(processor, data, current); | ||
292 | - } | ||
293 | - | ||
294 | - private FinalIntentProcessPhase process(IntentProcessPhase initial) { | ||
295 | - Optional<IntentProcessPhase> currentPhase = Optional.of(initial); | ||
296 | - IntentProcessPhase previousPhase = initial; | ||
297 | - | ||
298 | - while (currentPhase.isPresent()) { | ||
299 | - previousPhase = currentPhase.get(); | ||
300 | - currentPhase = previousPhase.execute(); | ||
301 | - } | ||
302 | - return (FinalIntentProcessPhase) previousPhase; | ||
303 | - } | ||
304 | - | ||
305 | private class InternalBatchDelegate implements IntentBatchDelegate { | 289 | private class InternalBatchDelegate implements IntentBatchDelegate { |
306 | @Override | 290 | @Override |
307 | public void execute(Collection<IntentData> operations) { | 291 | public void execute(Collection<IntentData> operations) { |
... | @@ -340,6 +324,22 @@ public class IntentManager | ... | @@ -340,6 +324,22 @@ public class IntentManager |
340 | } | 324 | } |
341 | } | 325 | } |
342 | 326 | ||
327 | + private IntentProcessPhase createInitialPhase(IntentData data) { | ||
328 | + IntentData current = store.getIntentData(data.key()); | ||
329 | + return newInitialPhase(processor, data, current); | ||
330 | + } | ||
331 | + | ||
332 | + private FinalIntentProcessPhase process(IntentProcessPhase initial) { | ||
333 | + Optional<IntentProcessPhase> currentPhase = Optional.of(initial); | ||
334 | + IntentProcessPhase previousPhase = initial; | ||
335 | + | ||
336 | + while (currentPhase.isPresent()) { | ||
337 | + previousPhase = currentPhase.get(); | ||
338 | + currentPhase = previousPhase.execute(); | ||
339 | + } | ||
340 | + return (FinalIntentProcessPhase) previousPhase; | ||
341 | + } | ||
342 | + | ||
343 | private class InternalIntentProcessor implements IntentProcessor { | 343 | private class InternalIntentProcessor implements IntentProcessor { |
344 | @Override | 344 | @Override |
345 | public List<Intent> compile(Intent intent, List<Intent> previousInstallables) { | 345 | public List<Intent> compile(Intent intent, List<Intent> previousInstallables) { | ... | ... |
-
Please register or login to post a comment