I'm checking this in on the generics branch.
This genericizes some methods that were brought in after the last
merge.
Tom
2006-04-14 Tom Tromey <[EMAIL PROTECTED]>
* javax/swing/tree/DefaultTreeSelectionModel.java (getListeners):
Genericized.
* javax/swing/tree/AbstractLayoutCache.java (getVisiblePathsFrom):
Genericized.
Index: javax/swing/tree/AbstractLayoutCache.java
===================================================================
RCS file:
/cvsroot/classpath/classpath/javax/swing/tree/AbstractLayoutCache.java,v
retrieving revision 1.2.2.6
diff -u -r1.2.2.6 AbstractLayoutCache.java
--- javax/swing/tree/AbstractLayoutCache.java 14 Apr 2006 06:50:34 -0000
1.2.2.6
+++ javax/swing/tree/AbstractLayoutCache.java 14 Apr 2006 14:50:09 -0000
@@ -314,7 +314,7 @@
*
* @return Enumeration
*/
- public abstract Enumeration getVisiblePathsFrom(TreePath path);
+ public abstract Enumeration<TreePath> getVisiblePathsFrom(TreePath path);
/**
* getVisibleChildCount
Index: javax/swing/tree/DefaultTreeSelectionModel.java
===================================================================
RCS file:
/cvsroot/classpath/classpath/javax/swing/tree/DefaultTreeSelectionModel.java,v
retrieving revision 1.3.2.8
diff -u -r1.3.2.8 DefaultTreeSelectionModel.java
--- javax/swing/tree/DefaultTreeSelectionModel.java 14 Apr 2006 06:50:34
-0000 1.3.2.8
+++ javax/swing/tree/DefaultTreeSelectionModel.java 14 Apr 2006 14:50:10
-0000
@@ -526,7 +526,7 @@
* @return an array of listeners
* @since 1.3
*/
- public EventListener[] getListeners(Class listenerType)
+ public <T extends EventListener> T[] getListeners(Class<T> listenerType)
{
return listenerList.getListeners(listenerType);
}