aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/event/MethodEventSource.java
diff options
context:
space:
mode:
authorDenis Anisimov <denis@vaadin.com>2016-11-28 10:10:21 +0300
committerVaadin Code Review <review@vaadin.com>2016-11-29 10:35:59 +0000
commitb8e84da2e2dc4bcaed40d169c40a97f3d11e0648 (patch)
tree80e5a8e7a7856b67048319958ef88b5466d3e4bc /server/src/main/java/com/vaadin/event/MethodEventSource.java
parent0d57c15577f5d5e15453024ce90144120948eae9 (diff)
downloadvaadin-framework-b8e84da2e2dc4bcaed40d169c40a97f3d11e0648.tar.gz
vaadin-framework-b8e84da2e2dc4bcaed40d169c40a97f3d11e0648.zip
Correct all tests that introspect classpath for Vaadin classes.
Fixes vaadin/framework8-issues#399 RemoveListenersDeprecatedTest test is fixed. Corrections are made to make the test above passes. Change-Id: I209a4693d241a1488b69b4742f48549dbf4bf0ac
Diffstat (limited to 'server/src/main/java/com/vaadin/event/MethodEventSource.java')
-rw-r--r--server/src/main/java/com/vaadin/event/MethodEventSource.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/event/MethodEventSource.java b/server/src/main/java/com/vaadin/event/MethodEventSource.java
index 2ba5586eb1..e59ccfd4d4 100644
--- a/server/src/main/java/com/vaadin/event/MethodEventSource.java
+++ b/server/src/main/java/com/vaadin/event/MethodEventSource.java
@@ -141,7 +141,10 @@ public interface MethodEventSource extends Serializable {
* @param method
* the method owned by the target that's registered to listen to
* events of type eventType.
+ * @deprecated use a {@link Registration} returned by
+ * {@link #addListener(Class, Object, Method)}
*/
+ @Deprecated
public void removeListener(Class<?> eventType, Object target,
Method method);
@@ -172,7 +175,10 @@ public interface MethodEventSource extends Serializable {
* @param methodName
* the name of the method owned by <code>target</code> that's
* registered to listen to events of type <code>eventType</code>.
+ * @deprecated use a {@link Registration} returned by
+ * {@link #addListener(Class, Object, String)}
*/
+ @Deprecated
public void removeListener(Class<?> eventType, Object target,
String methodName);
}