Introduce WritableObject/WritableIdentifier
[yangtools.git] / common / concepts / src / main / java / org / opendaylight / yangtools / concepts / AbstractRegistration.java
index 1a2c7f32f824cb9732cdaaa4068bd78378e5ac20..c07b38b3ff7515ba064ff63d1701e537616b4a11 100644 (file)
@@ -34,7 +34,7 @@ public abstract class AbstractRegistration implements AutoCloseable {
      * @return true if the registration was closed, false otherwise.
      */
     protected final boolean isClosed() {
-        return CLOSED_UPDATER.get(this) != 0;
+        return closed != 0;
     }
 
     @Override