Merge "OPNFLWPLUG-1076 Migrate lldp-speaker, forwardingrules-sync and arbitratorrecon...
[openflowplugin.git] / openflowjava / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / keys / ExperimenterIdDeserializerKey.java
index ec2cf3e1c8322ed5402937894441b91170b75414..49c1c213be4781afeab5c533079202353581b22e 100644 (file)
@@ -12,13 +12,17 @@ import org.opendaylight.openflowjava.protocol.api.util.EncodeConstants;
 import org.opendaylight.yangtools.yang.binding.DataContainer;
 
 /**
+ * Key for an experimenter id deserializer.
+ *
  * @author michal.polkorab
  */
 public class ExperimenterIdDeserializerKey extends MessageCodeKey implements ExperimenterDeserializerKey {
 
-    private long experimenterId;
+    private final long experimenterId;
 
     /**
+     * Constructor.
+     *
      * @param <E> type of target experimenter object
      * @param version protocol wire version
      * @param experimenterId experimenter / vendor ID
@@ -31,7 +35,7 @@ public class ExperimenterIdDeserializerKey extends MessageCodeKey implements Exp
     }
 
     protected int hashCodeOfLong(long longValue) {
-        return (int) (longValue ^ (longValue >>> 32));
+        return (int) (longValue ^ longValue >>> 32);
     }
 
     @Override
@@ -64,4 +68,4 @@ public class ExperimenterIdDeserializerKey extends MessageCodeKey implements Exp
     public String toString() {
         return super.toString() + " experimenterID: " + experimenterId;
     }
-}
\ No newline at end of file
+}