OPENJPA-1700 FindBugs - Suspicious reference comparison of Boolean values

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@954694 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Donald Woods 2010-06-15 02:09:06 +00:00
parent bc6c92ca64
commit 72ddd27a00
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ public class ResultObjectProviderIterator implements Iterator, Closeable {
* Close the underlying result object provider. * Close the underlying result object provider.
*/ */
public void close() { public void close() {
if (_open == Boolean.TRUE) { if (Boolean.TRUE.equals(_open)) {
try { try {
_rop.close(); _rop.close();
} catch (Exception e) { } catch (Exception e) {
@ -60,7 +60,7 @@ public class ResultObjectProviderIterator implements Iterator, Closeable {
} }
public boolean hasNext() { public boolean hasNext() {
if (_open == Boolean.FALSE) if (Boolean.FALSE.equals(_open))
return false; return false;
if (_hasNext == null) { if (_hasNext == null) {