Description
The getBooleanValue(Object o) method looks like this:
private static Boolean getBooleanValue(Object o)
{ return o instanceof Boolean ? (Boolean)o : o instanceof Boolean ? Boolean.valueOf(o.toString()) : null; }If o is not an instance of Boolean, it checks to see if it is a Boolean again. Instead, it should get to see if it is an instance of String like the getIntValue method:
private static Integer getIntValue(Object o)
{ return o instanceof Integer ? (Integer)o : o instanceof String ? Integer.valueOf(o.toString()) : null; }Attachments
Issue Links
- links to