Fixed a deadlock that occurred on shutdown of the framework, when an equals() invocation caused an ensureRegistration() call to wait indefinitely.

git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@425357 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/org.apache.felix.dependencymanager/src/main/java/org/apache/felix/dependencymanager/ServiceRegistrationImpl.java b/org.apache.felix.dependencymanager/src/main/java/org/apache/felix/dependencymanager/ServiceRegistrationImpl.java
index dc15d5f..38eadcc 100644
--- a/org.apache.felix.dependencymanager/src/main/java/org/apache/felix/dependencymanager/ServiceRegistrationImpl.java
+++ b/org.apache.felix.dependencymanager/src/main/java/org/apache/felix/dependencymanager/ServiceRegistrationImpl.java
@@ -75,7 +75,7 @@
                 // service registration ready; if not we wait again
             }
         }
-        if (ILLEGAL_STATE.equals(m_registration)) {
+        if (ILLEGAL_STATE == m_registration) {
             throw new IllegalStateException("Service is not registered.");
         }
     }