From 3604bf01ded16d21041cbb655632429e00c94639 Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Mon, 23 Jul 2012 15:23:43 +0300 Subject: Add Java 6 @Override annotations to all methods from interfaces --- src/com/vaadin/event/EventRouter.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/com/vaadin/event/EventRouter.java') diff --git a/src/com/vaadin/event/EventRouter.java b/src/com/vaadin/event/EventRouter.java index 49b29de9bb..90c080b860 100644 --- a/src/com/vaadin/event/EventRouter.java +++ b/src/com/vaadin/event/EventRouter.java @@ -35,6 +35,7 @@ public class EventRouter implements MethodEventSource { * events generated by this component. Don't add a JavaDoc comment here, we * use the default documentation from implemented interface. */ + @Override public void addListener(Class eventType, Object object, Method method) { if (listenerList == null) { listenerList = new LinkedHashSet(); @@ -47,6 +48,7 @@ public class EventRouter implements MethodEventSource { * listen events generated by this component. Don't add a JavaDoc comment * here, we use the default documentation from implemented interface. */ + @Override public void addListener(Class eventType, Object object, String methodName) { if (listenerList == null) { listenerList = new LinkedHashSet(); @@ -59,6 +61,7 @@ public class EventRouter implements MethodEventSource { * a JavaDoc comment here, we use the default documentation from implemented * interface. */ + @Override public void removeListener(Class eventType, Object target) { if (listenerList != null) { final Iterator i = listenerList.iterator(); @@ -77,6 +80,7 @@ public class EventRouter implements MethodEventSource { * Don't add a JavaDoc comment here, we use the default documentation from * implemented interface. */ + @Override public void removeListener(Class eventType, Object target, Method method) { if (listenerList != null) { final Iterator i = listenerList.iterator(); @@ -95,6 +99,7 @@ public class EventRouter implements MethodEventSource { * Don't add a JavaDoc comment here, we use the default documentation from * implemented interface. */ + @Override public void removeListener(Class eventType, Object target, String methodName) { -- cgit v1.2.3