Sho SHIMIZU

Rearrange the method declaration order

Change-Id: I00e09be8d1f743a846d96c791cfcf40b104f5cc3
......@@ -286,22 +286,6 @@ public class IntentManager
}
}
private IntentProcessPhase createInitialPhase(IntentData data) {
IntentData current = store.getIntentData(data.key());
return newInitialPhase(processor, data, current);
}
private FinalIntentProcessPhase process(IntentProcessPhase initial) {
Optional<IntentProcessPhase> currentPhase = Optional.of(initial);
IntentProcessPhase previousPhase = initial;
while (currentPhase.isPresent()) {
previousPhase = currentPhase.get();
currentPhase = previousPhase.execute();
}
return (FinalIntentProcessPhase) previousPhase;
}
private class InternalBatchDelegate implements IntentBatchDelegate {
@Override
public void execute(Collection<IntentData> operations) {
......@@ -340,6 +324,22 @@ public class IntentManager
}
}
private IntentProcessPhase createInitialPhase(IntentData data) {
IntentData current = store.getIntentData(data.key());
return newInitialPhase(processor, data, current);
}
private FinalIntentProcessPhase process(IntentProcessPhase initial) {
Optional<IntentProcessPhase> currentPhase = Optional.of(initial);
IntentProcessPhase previousPhase = initial;
while (currentPhase.isPresent()) {
previousPhase = currentPhase.get();
currentPhase = previousPhase.execute();
}
return (FinalIntentProcessPhase) previousPhase;
}
private class InternalIntentProcessor implements IntentProcessor {
@Override
public List<Intent> compile(Intent intent, List<Intent> previousInstallables) {
......