Remove ActionableResource setters 10/85410/6
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 28 Oct 2019 13:44:58 +0000 (14:44 +0100)
committerHema Gopalakrishnan <hema.gopalkrishnan@ericsson.com>
Wed, 4 Dec 2019 05:10:24 +0000 (05:10 +0000)
This removes previously-deprecated setters, so that the resource
itself has an immutable surface.

JIRA: GENIUS-281
Change-Id: Ic621cb4afb5567442b29a7c69fdaf0bcb7c5430e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/genius/utils/batching/ActionableResource.java
mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/genius/utils/batching/ActionableResourceImpl.java

index 1ea256644ebb42411f9a451cfc0df17d0489f910..a06e42aa5f6b748a50d11449ccbcaa43d02b5921 100644 (file)
@@ -19,28 +19,13 @@ public interface ActionableResource {
 
     InstanceIdentifier<?> getInstanceIdentifier();
 
-    @Deprecated
-    void setInstanceIdentifier(InstanceIdentifier<?> identifier);
-
     Object getInstance();
 
-    @Deprecated
-    void setInstance(Object instance);
-
     Object getOldInstance();
 
-    @Deprecated
-    void setOldInstance(Object oldInstance);
-
     short getAction();
 
-    @Deprecated
-    void setAction(short action);
-
     String getKey();
 
-    @Deprecated
-    void setKey(String key);
-
     ListenableFuture<Void> getResultFuture();
 }
index 7a8da046ee6131ad26881383351b0986f2e46d1c..7bd33ee833e5656f9faffccb07ebe7e3975e4469 100644 (file)
@@ -32,7 +32,6 @@ public class ActionableResourceImpl implements ActionableResource {
         this.action = action;
     }
 
-    @Override
     public void setInstance(Object instance) {
         this.instance = instance;
     }
@@ -42,7 +41,6 @@ public class ActionableResourceImpl implements ActionableResource {
         return this.instance;
     }
 
-    @Override
     public void setOldInstance(Object oldInstance) {
         this.oldInstance = oldInstance;
     }
@@ -52,7 +50,6 @@ public class ActionableResourceImpl implements ActionableResource {
         return this.oldInstance;
     }
 
-    @Override
     public void setInstanceIdentifier(InstanceIdentifier instanceIdentifier) {
         this.identifier = instanceIdentifier;
     }
@@ -62,7 +59,6 @@ public class ActionableResourceImpl implements ActionableResource {
         return this.identifier;
     }
 
-    @Override
     public void setAction(short action) {
         this.action = action;
     }
@@ -72,7 +68,6 @@ public class ActionableResourceImpl implements ActionableResource {
         return action;
     }
 
-    @Override
     public void setKey(String key) {
         this.key = key;
     }