Bug 8662 RefreshingSCPModuleInfoRegistry synchronized
[controller.git] / opendaylight / config / config-manager / src / main / java / org / opendaylight / controller / config / manager / impl / TransactionIdentifier.java
index 3e2b8926a62c0766bf0d37774a7516b26ac1e792..5fc5182db39cd1b6f73844a127e12c25cf7e20a0 100644 (file)
@@ -7,12 +7,13 @@
  */
 package org.opendaylight.controller.config.manager.impl;
 
-import org.opendaylight.protocol.concepts.Identifier;
+import org.opendaylight.yangtools.concepts.Identifier;
 
 public class TransactionIdentifier implements Identifier {
+    private static final long serialVersionUID = 1L;
     private final String name;
 
-    public TransactionIdentifier(String name) {
+    public TransactionIdentifier(final String name) {
         this.name = name;
     }
 
@@ -26,16 +27,19 @@ public class TransactionIdentifier implements Identifier {
     }
 
     @Override
-    public boolean equals(Object o) {
-        if (this == o)
+    public boolean equals(final Object o) {
+        if (this == o) {
             return true;
-        if (o == null || getClass() != o.getClass())
+        }
+        if (o == null || getClass() != o.getClass()) {
             return false;
+        }
 
         TransactionIdentifier that = (TransactionIdentifier) o;
 
-        if (name != null ? !name.equals(that.name) : that.name != null)
+        if (name != null ? !name.equals(that.name) : that.name != null) {
             return false;
+        }
 
         return true;
     }