I am surprised to know that getBoolean() and valueOf() method returns different results for the same input string.
getBoolean()
valueOf()
I have tried to pass the
I too found this issue recently when using Boolean.getBoolean() . In addition if you want to have a null check you can use Boolean.parseBoolean which will return false in case of nulls