You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ // The only purpose of this switch statement is to generate the correct pop instruction, should the event handler method return something other than void.
157
+
+ // Non-void event handlers will be unsupported in a future release.
+ + " returns non-void type " + m.getReturnType().getName() + ". This is an unsupported behavior which will be removed in a future version of Paper."
19
-
+ + "This should be reported to the developers of " + plugin.getDescription().getFullName() + ", (" + String.join(",", plugin.getDescription().getAuthors()) + ')');
18
+
+ + " returns non-void type " + m.getReturnType().getName() + ". This is unsupported behavior and will no longer work in a future version of Paper."
19
+
+ + "This should be reported to the developers of " + plugin.getDescription().getFullName() + " (" + String.join(",", plugin.getDescription().getAuthors()) + ')');
20
20
+ }
21
21
if (Modifier.isStatic(m.getModifiers())) {
22
22
return new StaticMethodHandleEventExecutor(eventClass, m);
0 commit comments