[Fix] Fixed ObjectHelper.contains() and .isIn() with Boolean

This commit is contained in:
Robert von Burg 2020-06-25 12:51:11 +02:00
parent 1082170d02
commit 46dbe8aed8
1 changed files with 3 additions and 1 deletions

View File

@ -200,6 +200,8 @@ public class ObjectHelper {
rightO = Float.valueOf(rightString);
} else if (left instanceof Double) {
rightO = Double.valueOf(rightString);
} else if (left instanceof Boolean) {
rightO = Boolean.valueOf(rightString);
} else if (left instanceof Date) {
rightO = ISO8601.parseToDate(rightString);
} else {
@ -266,7 +268,7 @@ public class ObjectHelper {
return false;
}
if (right instanceof String || right instanceof Number) {
if (right instanceof String || right instanceof Number || right instanceof Boolean) {
return equals(left, right, ignoreCase);
}