Author: peteroyle
Date: 2009-03-29 14:58:00 -0400 (Sun, 29 Mar 2009)
New Revision: 2254
Modified:
ri/trunk/impl/src/main/java/org/jboss/webbeans/context/DependentStorageRequest.java
Log:
.equals now returns null if given null argument (rather than NPE).
Modified:
ri/trunk/impl/src/main/java/org/jboss/webbeans/context/DependentStorageRequest.java
===================================================================
---
ri/trunk/impl/src/main/java/org/jboss/webbeans/context/DependentStorageRequest.java 2009-03-29
18:34:14 UTC (rev 2253)
+++
ri/trunk/impl/src/main/java/org/jboss/webbeans/context/DependentStorageRequest.java 2009-03-29
18:58:00 UTC (rev 2254)
@@ -76,6 +76,9 @@
@Override
public boolean equals(Object other)
{
+ if (!(other instanceof DependentStorageRequest)) {
+ return false;
+ }
DependentStorageRequest otherRequest = (DependentStorageRequest) other;
if (dependentInstancesStore != otherRequest.getDependentInstancesStore())
{
Show replies by date