Merge "BUG-2329 Add test for anyxmls inside rpc resonse for netcfon-connector"
[controller.git] / opendaylight / protocol_plugins / openflow / src / main / java / org / opendaylight / controller / protocol_plugin / openflow / vendorextension / v6extension / V6StatsReply.java
index 6893fa78e279979bb3149038a3f87b3bc4234a49..3ae19838a2136b2be46fc18df026119fa03eb8a4 100644 (file)
@@ -19,9 +19,9 @@ import org.openflow.util.U16;
 /**
  * This Class processes the OpenFlow Vendor Extension Reply message of a Stats
  * Request. It parses the reply message and initializes fields of  V6StatsReply
- * object. Multiple instances of this class objects are created and used by 
+ * object. Multiple instances of this class objects are created and used by
  * OpenDaylight's Troubleshooting Application.
- * 
+ *
  */
 
 public class V6StatsReply extends OFVendorStatistics {
@@ -296,19 +296,14 @@ public class V6StatsReply extends OFVendorStatistics {
          * action list may be preceded by a padding of 0 to 7 bytes based upon this:
          */
         short pad_size = (short) (((match_len + 7) / 8) * 8 - match_len);
-        for (i = 0; i < pad_size; i++)
+        for (i = 0; i < pad_size; i++) {
             data.get();
+        }
         int action_len = this.length - MINIMUM_LENGTH - (match_len + pad_size);
         if (action_len > 0)
             this.actions = this.actionFactory.parseActions(data, action_len);
     }
 
-    @Override
-    public void writeTo(ByteBuffer data) {
-        super.writeTo(data);//TBD. This Fn needs work. Should never get called though.
-
-    }
-
     @Override
     public int hashCode() {
         final int prime = 31;