<Swing Dev> [PATCH] 6179357-related: Working on warnings removal
Roman Kennke
roman at kennke.org
Tue Oct 16 18:11:30 UTC 2007
Hi there,
> 1. DesktopProperty:
> Can You change declaration into
> private final static ReferenceQueue<Object> queue = new
> ReferenceQueue<Object>();
> (note that I added final and replaced HashMap by Map) and remove a
> static section?
This isn't exactly correct. The equivalent of a ReferenceQueue in
generics notation is ReferenceQueue<?>. See:
http://java.sun.com/docs/books/tutorial/java/generics/subtyping.html
Correct me if I'm wrong on this.
/Roman
--
http://kennke.org/blog/
More information about the swing-dev
mailing list