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:
parent
1d802df663
commit
e4e9e7fab2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue