commit | 62808d116538a1c501b158b37b05b7d255718a29 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Tue Feb 03 18:54:39 2015 -0800 |
committer | Brian O'Connor <bocon@onlab.us> | Fri Feb 13 14:10:45 2015 -0800 |
tree | 09eb139fdabe1c1610cbfc3d4c028862b047ed66 | |
parent | 4931ee5dc696eca411b80b4c50b199367fcb2b4b [diff] [blame] |
Enforce overrinding execute() method in IntentUpdate subclasses Change-Id: I02cf03abd60f771357b98bbd79c83eb3e0dce958
diff --git a/core/net/src/main/java/org/onosproject/net/intent/impl/CompletedIntentUpdate.java b/core/net/src/main/java/org/onosproject/net/intent/impl/CompletedIntentUpdate.java index a2ed4d9..df0b267 100644 --- a/core/net/src/main/java/org/onosproject/net/intent/impl/CompletedIntentUpdate.java +++ b/core/net/src/main/java/org/onosproject/net/intent/impl/CompletedIntentUpdate.java
@@ -21,6 +21,7 @@ import java.util.Collections; import java.util.List; +import java.util.Optional; /** * Represents a completed phase of processing an intent. @@ -63,4 +64,9 @@ default List<Intent> allInstallables() { return Collections.emptyList(); } + + @Override + default Optional<IntentUpdate> execute() { + return Optional.empty(); + } }