On Wed, Jan 7, 2009 at 2:45 PM, sebb <seb...@gmail.com> wrote:
> On 07/01/2009, Rahul Akolkar <rahul.akol...@gmail.com> wrote:
>> On Wed, Jan 7, 2009 at 12:28 PM, sebb <seb...@gmail.com> wrote:
>>  > Eclipse warns that there are unnecessary
>>  > @SuppressWarnings("unchecked") annotations in the SCXMLParser and
>>  > JSBindings classes - is it OK to remove them?
>>  >
>>
>> <snip/>
>>
>>  Yup, if you're convinced they aren't needed.
>
> OK, done.
>
>>
>>  > Also, there are some warnings about boxing/unboxing in
>>  > FunctionResolver and SCInstance - do you want to suppress the warnings
>>  > - or perform the boxing?
>>  >
>>  > [I've fixed the boxing warnings in the test code]
>>  >
>>
>> <snap/>
>>
>>  Perhaps the little code simplification is worth the purported
>>  performance issues? They should be handling booleans mostly (atleast
>>  in the source part). You can also turn off the warning in Eclipse if
>>  you want.
>
> I think the message is more about whether the boxing is intentional or
> not, rather than a performance issue. So fixing the warnings indicates
> that the boxing is OK.
>
<snip/>

Its intentional and OK, as you note below.

-Rahul


> In SCInstance setDone() and isDone() I think it's clear that the
> parameter and return type are intended to be boolean, whereas the Map
> needs Boolean, so the autoboxing is OK.
>
> Likewise for FunctionResolver.
>
> I've added SuppressWarnings for these.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to