1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[288878] Method signature criteria in DsfSession.getEventHandlerMethods() incorrect

This commit is contained in:
John Cortell 2009-09-08 21:39:34 +00:00
parent 1d802df663
commit e4e9e7fab2

View file

@ -473,7 +473,7 @@ public class DsfSession
for (Method method : methods) {
if (method.isAnnotationPresent(DsfServiceEventHandler.class)) {
Class<?>[] paramTypes = method.getParameterTypes();
if (paramTypes.length > 2) {
if (paramTypes.length > 1) {
throw new IllegalArgumentException("ServiceEventHandler method has incorrect number of parameters"); //$NON-NLS-1$
}
retVal.add(method);