mirror of https://github.com/apache/openjpa.git
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:
parent
bc6c92ca64
commit
72ddd27a00
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue