I\'m a bit confused: I have a function, that takes an Object as argument. But the compiler does not complain if I just pass a primitive and even recognizes a boolean primiti
This part of the method:
if (((Boolean) value).booleanValue() == true ) return "yes"; if (((Boolean) value).booleanValue() == false ) return "no"; return "dunno";
Could be replaced with
if (value == null) return "dunno"; return value ? "yes" : "no";