Merged gcj-eclipse branch to trunk.
From-SVN: r120621
This commit is contained in:
parent
c648dedbde
commit
97b8365caf
17478 changed files with 606493 additions and 100744 deletions
|
@ -318,11 +318,11 @@ paramString()
|
|||
* @exception ClassCastException If listenerType doesn't specify a class or
|
||||
* interface that implements java.util.EventListener.
|
||||
*/
|
||||
public EventListener[] getListeners (Class listenerType)
|
||||
public <T extends EventListener> T[] getListeners (Class<T> listenerType)
|
||||
{
|
||||
if (listenerType == ItemListener.class)
|
||||
return AWTEventMulticaster.getListeners (item_listeners, listenerType);
|
||||
|
||||
|
||||
return super.getListeners (listenerType);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue