improve boolean logic

This commit is contained in:
Daniella / Tove 2022-04-26 15:31:24 +02:00
parent 5fcf560e56
commit a1ee060287

View file

@ -1604,7 +1604,7 @@ class ISBPLObject {
} }
public boolean isTruthy() { 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 // This has heavy optimizations, please do not change unless necessary