Addressing Technical Debt for POLICY-SDK-APP
[policy/engine.git] / POLICY-SDK-APP / src / main / java / org / onap / policy / utils / PolicyContainer.java
index d014af0..08f477f 100644 (file)
@@ -37,18 +37,16 @@ public interface PolicyContainer extends Serializable{
   
     public boolean containsId(Object itemId);
 
-    public Object addItem() throws UnsupportedOperationException;
+    public Object addItem();
     
-    public boolean removeItem(Object itemId)
-            throws UnsupportedOperationException;
+    public boolean removeItem(Object itemId);
 
     public boolean addContainerProperty(Object propertyId, Class<?> type,
-            Object defaultValue) throws UnsupportedOperationException;
+            Object defaultValue);
    
-    public boolean removeContainerProperty(Object propertyId)
-            throws UnsupportedOperationException;
+    public boolean removeContainerProperty(Object propertyId);
 
-    public boolean removeAllItems() throws UnsupportedOperationException;
+    public boolean removeAllItems();
 
     public interface Ordered extends PolicyContainer {
 
@@ -64,8 +62,7 @@ public interface PolicyContainer extends Serializable{
 
         public boolean isLastId(Object itemId);
 
-        public Object addItemAfter(Object previousItemId)
-                throws UnsupportedOperationException;
+        public Object addItemAfter(Object previousItemId);
         
     }
 
@@ -78,7 +75,7 @@ public interface PolicyContainer extends Serializable{
 
         public List<?> getItemIds(int startIndex, int numberOfItems);
         
-        public Object addItemAt(int index) throws UnsupportedOperationException;
+        public Object addItemAt(int index);
 
         public interface ItemAddEvent extends ItemSetChangeEvent {