Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZeb Ford-Reitz2014-03-31 11:56:15 +0000
committerZeb Ford-Reitz2014-03-31 11:56:25 +0000
commitbb060cad11d1972d4a9696a71d354cfe568b6411 (patch)
tree6930f091140e40fad510d6ad4a17dc1169456852 /org.eclipse.jubula.rc.swing/src
parent638d5bc70dcb4ca0fcb7d3e98b74c3ece31b9d60 (diff)
downloadorg.eclipse.jubula.core-bb060cad11d1972d4a9696a71d354cfe568b6411.tar.gz
org.eclipse.jubula.core-bb060cad11d1972d4a9696a71d354cfe568b6411.tar.xz
org.eclipse.jubula.core-bb060cad11d1972d4a9696a71d354cfe568b6411.zip
Refactoring: Adds generics to o.e.j.rc.swing.listener.ComponentHandler.
Diffstat (limited to 'org.eclipse.jubula.rc.swing/src')
-rw-r--r--org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/listener/ComponentHandler.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/listener/ComponentHandler.java b/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/listener/ComponentHandler.java
index 13275a56f..04cc71263 100644
--- a/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/listener/ComponentHandler.java
+++ b/org.eclipse.jubula.rc.swing/src/org/eclipse/jubula/rc/swing/listener/ComponentHandler.java
@@ -269,7 +269,10 @@ public class ComponentHandler extends BaseAWTEventListener
* registered as a <code>listenerClass</code> listener on the
* given <code>component</code>. Otherwise, <code>false</code>.
*/
- private boolean hasListener(Component component, Class listenerClass) {
+ private boolean hasListener(
+ Component component,
+ Class<? extends EventListener> listenerClass) {
+
EventListener[] listener = component.getListeners(listenerClass);
int length = listener.length;
for (int i = 0; i < length; i++) {

Back to the top