[ 
https://issues.apache.org/jira/browse/LANG-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13016813#comment-13016813
 ] 

Sebb commented on LANG-688:
---------------------------

I'm not keen on allowing auto-boxing as it has some disadvantages. 
For example, hiding the conversions means it's not so obvious when the code is 
doing unnecessary work, e.g. accidentally mixing the types.

And it can cause some unexpected behaviour (admittedly not with boolean), see 
[1]

For code that is written once and used by many, I think it's much safer to 
always use explicit boxing and unboxing.

[1] http://www.jibble.org/news/?period=2005-12&id=1135198746

> Proposed code simplifications for BooleanUtils
> ----------------------------------------------
>
>                 Key: LANG-688
>                 URL: https://issues.apache.org/jira/browse/LANG-688
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 3.0
>            Reporter: Matt Benson
>            Assignee: Matt Benson
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: LANG-688.patch.txt
>
>
> Patch forthcoming for team consideration.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to