RFR JDK-8016592: Clean-up Javac Overrides Warnings In javax/management/NotificationBroadcasterSupport.java
Alan Bateman
Alan.Bateman at oracle.com
Sat Jun 15 09:26:18 PDT 2013
On 14/06/2013 20:49, Dan Xu wrote:
> Hi,
>
> I have a simple fix to clean up the new javac overrides warnings in
> NotificationBroadcasterSupport.java file. Please help review it. Thanks!
>
> webrev: http://cr.openjdk.java.net/~dxu/8016592/webrev.00/
> <http://cr.openjdk.java.net/%7Edxu/8016592/webrev.00/>
> bug: http://bugs.sun.com/view_bug.do?bug_id=8016592
>
> -Dan
I don't know this code but it looks to me that ListenerInfo.equals
doesn't really need to check if the object is a WildcardListenerInfo.
That is, I assume there aren't ListenerInfo instances that have a null
filte and handback==null but aren't a WildcardListenerInfo. In any case,
the hashCode looks fine.
WildcardListenerInfo looks okay too although for consistency then it
should probably use super.hashCode() so it's more obvious when checking
it against the equals method.
-Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20130615/9f6e9ae9/attachment-0001.html
More information about the serviceability-dev
mailing list