commit | d2d997433276abb1259a1838438b1888610498fd | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Thu Feb 05 15:55:14 2015 -0800 |
committer | Brian O'Connor <bocon@onlab.us> | Fri Feb 13 14:10:47 2015 -0800 |
tree | 69bd3b733ee8cf58b07cee073c42495cfe3f87fe | |
parent | 6a2952909a836a2a9f8e8bed11083f5f7efe019c [diff] [blame] |
Ensure a CompletedIntentUpdate subclass is the final state Change-Id: Icecf8a45fad7cb80f3953dcfc081c344d3fa0adb
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 60dc334..612ae1e 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
@@ -22,12 +22,12 @@ /** * Represents a completed phase of processing an intent. */ -interface CompletedIntentUpdate extends IntentUpdate { +abstract class CompletedIntentUpdate implements IntentUpdate { @Override - default Optional<IntentUpdate> execute() { + public final Optional<IntentUpdate> execute() { return Optional.empty(); } - IntentData data(); + public abstract IntentData data(); }