improve boolean logic
This commit is contained in:
parent
5fcf560e56
commit
a1ee060287
1 changed files with 1 additions and 1 deletions
|
@ -1604,7 +1604,7 @@ class ISBPLObject {
|
|||
}
|
||||
|
||||
public boolean isTruthy() {
|
||||
return object != null && object != Integer.valueOf(0) && object != Boolean.valueOf(false);
|
||||
return object != null && object != Integer.valueOf(0) && !object.equals(Boolean.valueOf(false));
|
||||
}
|
||||
|
||||
// This has heavy optimizations, please do not change unless necessary
|
||||
|
|
Loading…
Add table
Reference in a new issue