commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maciej Zywno" <m.zy...@gmail.com>
Subject toBooleanDefaultIfNull - why (bool.booleanValue() ? true : false)
Date Thu, 14 Jun 2007 22:25:25 GMT
Hey,

I wanted to use BooleanUtils.toBooleanDefaultIfNull method however I can see
that it returns with:

return (bool.booleanValue() ? true : false);

Shouldn't it be just:

return bool.booleanValue()

?

Wouldn't it be faster the second way? Or is there any idea behind the way
it's implemented right now? Sorry if it's obvious, but I was just curious :)

Thanks,

Maciek

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message