Bug 4098 - ofoverlay-renderer failure in jdk8
[groupbasedpolicy.git] / renderers / ofoverlay / src / main / java / org / opendaylight / groupbasedpolicy / renderer / ofoverlay / flow / FlowUtils.java
old mode 100644 (file)
new mode 100755 (executable)
index 3c68563..3ca1ee9
@@ -190,8 +190,8 @@ public final class FlowUtils {
     /**
      * Creates an Instance Identifier (path) for node with specified id
      *
-     * @param nodeId
-     * @return
+     * @param nodeId the ID of the node
+     * @return the {@link InstanceIdentifier}
      */
     public static final InstanceIdentifier<Node> createNodePath(final NodeId nodeId) {
         return InstanceIdentifier.builder(Nodes.class).child(Node.class, new NodeKey(nodeId)).build();
@@ -225,6 +225,10 @@ public final class FlowUtils {
             .build();
     }
 
+    public static InstanceIdentifier<Group> createGroupPath(final NodeId nodeId, final Long groupId) {
+        return createGroupPath(nodeId, new GroupId(groupId));
+    }
+
     /**
      * Creates a group path from a node ID and group ID
      *
@@ -247,9 +251,9 @@ public final class FlowUtils {
      * Creates a path for particular flow, by appending flow-specific information
      * to table path.
      *
-     * @param table
-     * @param flowKey
-     * @return
+     * @param table the table iid
+     * @param flowKey the flow key
+     * @return the {@link InstanceIdentifier}
      */
     public static InstanceIdentifier<Flow> createFlowPath(final InstanceIdentifier<Table> table, final FlowKey flowKey) {
         return table.child(Flow.class, flowKey);
@@ -259,9 +263,9 @@ public final class FlowUtils {
      * Creates a path for particular flow, by appending flow-specific information
      * to table path.
      *
-     * @param table
-     * @param flowId
-     * @return
+     * @param table the table iid
+     * @param flowId the flow id
+     * @return the {@link InstanceIdentifier}
      */
     public static InstanceIdentifier<Flow> createFlowPath(final InstanceIdentifier<Table> table, final FlowId flowId) {
         return createFlowPath(table, new FlowKey(flowId));