Removed checkstyle warnings.
[bgpcep.git] / concepts / src / main / java / org / opendaylight / protocol / concepts / AbstractRegistration.java
index 9ba802c5e842a8f72c27c420822686681337a25d..7a34fdac2f71f56dc5901e0bc3fe1036a14175ce 100644 (file)
@@ -11,28 +11,25 @@ import javax.annotation.concurrent.GuardedBy;
 import javax.annotation.concurrent.ThreadSafe;
 
 /**
- * Utility registration handle. It is a convenience for register-style method
- * which can return an AutoCloseable realized by a subclass of this class.
- * Invoking the close() method triggers unregistration of the state the method
- * installed.
+ * Utility registration handle. It is a convenience for register-style method which can return an AutoCloseable realized
+ * by a subclass of this class. Invoking the close() method triggers unregistration of the state the method installed.
  */
 @ThreadSafe
 public abstract class AbstractRegistration implements AutoCloseable {
-       @GuardedBy("this")
-       private boolean closed = false;
+    @GuardedBy("this")
+    private boolean closed = false;
 
-       /**
-        * Remove the state referenced by this registration. This method is
-        * guaranteed to be called at most once. The referenced state must be
-        * retained until this method is invoked.
-        */
-       protected abstract void removeRegistration();
+    /**
+     * Remove the state referenced by this registration. This method is guaranteed to be called at most once. The
+     * referenced state must be retained until this method is invoked.
+     */
+    protected abstract void removeRegistration();
 
-       @Override
-       public final synchronized void close() {
-               if (!closed) {
-                       closed = true;
-                       removeRegistration();
-               }
-       }
+    @Override
+    public final synchronized void close() {
+        if (!closed) {
+            closed = true;
+            removeRegistration();
+        }
+    }
 }