FELIX-4860 : Revisit HandlerRegistry implementation. Improve error page registration.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1681033 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/http/base/src/main/java/org/apache/felix/http/base/internal/registry/FilterRegistry.java b/http/base/src/main/java/org/apache/felix/http/base/internal/registry/FilterRegistry.java
index 560c0b1..81acbae6 100644
--- a/http/base/src/main/java/org/apache/felix/http/base/internal/registry/FilterRegistry.java
+++ b/http/base/src/main/java/org/apache/felix/http/base/internal/registry/FilterRegistry.java
@@ -141,7 +141,7 @@
         while ( i.hasNext() )
         {
             final FilterRegistrationStatus status = i.next();
-            if ( status.getHandler().getFilterInfo().compareTo(filterInfo) == 0 )
+            if ( status.getHandler().getFilterInfo().equals(filterInfo) )
             {
                 found = status;
                 i.remove();
diff --git a/http/base/src/main/java/org/apache/felix/http/base/internal/whiteboard/WhiteboardManager.java b/http/base/src/main/java/org/apache/felix/http/base/internal/whiteboard/WhiteboardManager.java
index b92a798..ec9d4bc 100644
--- a/http/base/src/main/java/org/apache/felix/http/base/internal/whiteboard/WhiteboardManager.java
+++ b/http/base/src/main/java/org/apache/felix/http/base/internal/whiteboard/WhiteboardManager.java
@@ -431,7 +431,7 @@
                         while ( i.hasNext() )
                         {
                             final ContextHandler handler = i.next();
-                            if ( handler.getContextInfo().compareTo(info) == 0 )
+                            if ( handler.getContextInfo().equals(info) )
                             {
                                 i.remove();
                                 // check for deactivate