felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject svn commit: r738319 - /felix/trunk/framework.security/src/main/java/org/apache/felix/framework/security/util/Permissions.java
Date Wed, 28 Jan 2009 00:27:49 GMT
Author: pauls
Date: Wed Jan 28 00:27:49 2009
New Revision: 738319

URL: http://svn.apache.org/viewvc?rev=738319&view=rev
Log:
Fix a memory leak in Permissions.

Modified:
    felix/trunk/framework.security/src/main/java/org/apache/felix/framework/security/util/Permissions.java

Modified: felix/trunk/framework.security/src/main/java/org/apache/felix/framework/security/util/Permissions.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework.security/src/main/java/org/apache/felix/framework/security/util/Permissions.java?rev=738319&r1=738318&r2=738319&view=diff
==============================================================================
--- felix/trunk/framework.security/src/main/java/org/apache/felix/framework/security/util/Permissions.java
(original)
+++ felix/trunk/framework.security/src/main/java/org/apache/felix/framework/security/util/Permissions.java
Wed Jan 28 00:27:49 2009
@@ -177,7 +177,14 @@
                 return false;
             }
 
-            return entry.equals(o);
+            if (o instanceof Entry) 
+            {
+                return entry.equals(((Entry)o).get());
+            } 
+            else 
+            {
+                return false;
+            }
         }
     }
 



Mime
View raw message