OPENJPA-1700 FindBugs - equals() method does not check for null argument

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@956696 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2010-06-21 21:16:37 +00:00
parent 004cbd9644
commit 702fb78b14
3 changed files with 6 additions and 0 deletions

View File

@ -1147,6 +1147,8 @@ public class PCPath
}
public boolean equals(Object other) {
if (other == null)
return false;
if (other == this)
return true;
Action a = (Action) other;

View File

@ -284,6 +284,8 @@ public class RowManagerImpl
}
public boolean equals(Object other) {
if (other == null)
return false;
if (other == this)
return true;

View File

@ -2266,6 +2266,8 @@ public class SelectImpl
}
public boolean equals(Object other) {
if (other == null)
return false;
if (other == this)
return true;
if (other.getClass() != getClass())