Fix Javadoc API generation warnings and errors

This commit is contained in:
JeremyStar™ 2024-09-21 21:01:57 +02:00
parent a9125c9bea
commit 796eb9c8f9
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
3 changed files with 11 additions and 0 deletions

View file

@ -41,10 +41,18 @@ public abstract class EventListenerCode {
*/ */
public @NotNull EventPriority priority = EventPriority.DEFAULT; public @NotNull EventPriority priority = EventPriority.DEFAULT;
/**
* Constructs this class.
*
* @since v1-alpha5
*/
public EventListenerCode() {}
/** /**
* Invokes the event listener. * Invokes the event listener.
* *
* @param arguments arguments passed along by the event * @param arguments arguments passed along by the event
* @throws Exception exceptions thrown
* @since v1-alpha5 * @since v1-alpha5
*/ */
public abstract void run(Object... arguments) throws Exception; public abstract void run(Object... arguments) throws Exception;

View file

@ -44,6 +44,7 @@ public final class EventListenerMethod extends EventListenerCode {
/** /**
* Constructs this class. * Constructs this class.
* *
* @param method method to execute
* @since v1-alpha0 * @since v1-alpha0
*/ */
public EventListenerMethod(@NotNull Method method) { public EventListenerMethod(@NotNull Method method) {
@ -60,6 +61,7 @@ public final class EventListenerMethod extends EventListenerCode {
* Forwards {@link ReflectionMethod#getAnnotation(Class)} * Forwards {@link ReflectionMethod#getAnnotation(Class)}
* to the internal {@link ReflectionMethod} instance. * to the internal {@link ReflectionMethod} instance.
* *
* @param <T> annotation
* @param annotation annotation to get * @param annotation annotation to get
* @return annotation or {@code null} on error * @return annotation or {@code null} on error
* @see ReflectionMethod#getAnnotation(Class) * @see ReflectionMethod#getAnnotation(Class)

View file

@ -52,6 +52,7 @@ public enum Tristate {
/** /**
* Converts the {@link Boolean} into a {@link Tristate}. * Converts the {@link Boolean} into a {@link Tristate}.
* *
* @param bool boolean to convert
* @return tristated boolean * @return tristated boolean
* @since v1-alpha5 * @since v1-alpha5
*/ */