7116954: Misc warnings in java.beans/java.beans.context

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Thu Dec 1 16:33:07 UTC 2011


Updated version [1].

Changes:

*) Beans.java:184 - generified PrivilegedAction
*) Beans.java:284 - generified PrivilegedAction
*) NameGenerator.java:108 - changed Object to Integer and removed 
following cast
*) Introspector.java: added new fake local variable to reduce scope of 
@SuppressWarnings

[1] - http://cr.openjdk.java.net/~mcimadamore/7116954.1/ 
<http://cr.openjdk.java.net/%7Emcimadamore/7116954.1/>

Maurizio

On 01/12/11 16:03, Chris Hegarty wrote:
> Looks good.
>
> Trivially,
>    - NameGenerator.java L108
>      'size' could be an Integer and avoid subsequent cast.
>
>    - SimpleBeanInfo.java L121,
> < PrivilegedAction<Object>
>    ---
> > PrivilegedAction<java.awt.image.ImageProducer>
>
> -Chris.
>
> On 01/12/2011 15:07, Maurizio Cimadamore wrote:
>> Hi,
>> I tried to cleanup as many warnings as possible in
>> java.beans/java.beans.context [1]. There were a few places (esp. in
>> java.beans.context) in which I had to suppress rawtypes warnings as the
>> raw types were in method signatures of what looked like public API.
>> Feedback welcome.
>>
>> [1] - http://cr.openjdk.java.net/~mcimadamore/7116954.0/
>> <http://cr.openjdk.java.net/%7Emcimadamore/7116954.0/>
>>
>> Maurizio




More information about the core-libs-dev mailing list