Additional Warnings in Event Bus Proc #8

Merged
kske merged 2 commits from f/additional-warnings into develop 2021-02-20 21:46:08 +01:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit 8a30493c52 - Show all commits

View File

@ -63,6 +63,10 @@ public class EventProcessor extends AbstractProcessor {
else
pass = true;
// Warn the user about unused return values
if (useParameter && eventHandler.getReturnType().getKind() != TypeKind.VOID)
warning(eventHandler, "Unused return value");
// Abort checking if the handler signature is incorrect
if (!pass)
continue;