Rearrange the method declaration order
Change-Id: I00e09be8d1f743a846d96c791cfcf40b104f5cc3
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/IntentManager.java b/core/net/src/main/java/org/onosproject/net/intent/impl/IntentManager.java
index ba822e2..a0d1d9b 100644
--- a/core/net/src/main/java/org/onosproject/net/intent/impl/IntentManager.java
+++ b/core/net/src/main/java/org/onosproject/net/intent/impl/IntentManager.java
@@ -286,22 +286,6 @@
}
}
- 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 @@
}
}
+ 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) {