Fixup Augmentable and Identifiable methods changing
[openflowplugin.git] / applications / forwardingrules-sync / src / main / java / org / opendaylight / openflowplugin / applications / frsync / util / ModificationUtil.java
index 1df1f7c6a43628a218d58ab5a623ea71641820d4..2c87661f5eaf149cf5c24517aafc77725c055d6f 100644 (file)
@@ -17,7 +17,12 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.N
 /**
  * Basic {@link DataTreeModification} related tools.
  */
-public class ModificationUtil {
+public final class ModificationUtil {
+
+    private ModificationUtil() {
+        throw new IllegalStateException("This class should not be instantiated.");
+    }
+
     public static String nodeIdValue(DataTreeModification<Node> modification) {
         final NodeId nodeId = nodeId(modification);
 
@@ -49,6 +54,6 @@ public class ModificationUtil {
         if (dataAfter == null) {
             return null;
         }
-        return dataAfter.getAugmentation(FlowCapableNode.class);
+        return dataAfter.augmentation(FlowCapableNode.class);
     }
 }