From 38d8deefa700ca738a9907fd3cd3f5f7c9c60a3a Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 22 Sep 2024 13:48:33 +0200 Subject: [PATCH] Fix @since tags --- .../sosengine/base/EngineConfiguration.java | 2 +- .../de/staropensource/sosengine/base/EngineInternals.java | 4 ++-- .../reflection/InvalidMethodSignatureException.java | 3 ++- .../base/internal/implementation/EventListenerMethod.java | 8 ++++---- .../base/internal/implementation/package-info.java | 2 +- .../sosengine/base/reflection/ReflectionMethod.java | 2 +- testapp/src/main/java/module-info.java | 3 +-- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/base/src/main/java/de/staropensource/sosengine/base/EngineConfiguration.java b/base/src/main/java/de/staropensource/sosengine/base/EngineConfiguration.java index 736afd85..6c9d7230 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/EngineConfiguration.java +++ b/base/src/main/java/de/staropensource/sosengine/base/EngineConfiguration.java @@ -143,7 +143,7 @@ public final class EngineConfiguration extends Configuration { * * @return variable value * @see #initialPerformSubsystemInitialization - * @since v1-alpha2 + * @since v1-alpha5 */ private boolean initialPerformSubsystemInitialization; diff --git a/base/src/main/java/de/staropensource/sosengine/base/EngineInternals.java b/base/src/main/java/de/staropensource/sosengine/base/EngineInternals.java index 7150b98e..df03876b 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/EngineInternals.java +++ b/base/src/main/java/de/staropensource/sosengine/base/EngineInternals.java @@ -200,7 +200,7 @@ public final class EngineInternals { * @throws IllegalAccessException when restricted ({@link InternalAccessArea#REFLECTIVE_CLASSPATH_SCANNING_GET}) * @see EventHelper#registerEvent(Class, EventListenerCode) * @see EventHelper#registerEvent(Class, EventListenerCode, EventPriority) - * @since v1-alpha4 + * @since v1-alpha5 */ public boolean getReflectiveClasspathScanning() throws IllegalAccessException { isRestricted(InternalAccessArea.REFLECTIVE_CLASSPATH_SCANNING_GET); @@ -225,7 +225,7 @@ public final class EngineInternals { * @throws IllegalAccessException when restricted ({@link InternalAccessArea#REFLECTIVE_CLASSPATH_SCANNING_OVERRIDE}) * @see EventHelper#registerEvent(Class, EventListenerCode) * @see EventHelper#registerEvent(Class, EventListenerCode, EventPriority) - * @since v1-alpha0 + * @since v1-alpha5 */ public void overrideReflectiveClasspathScanning(boolean reflectiveClasspathScanning) throws IllegalAccessException { isRestricted(InternalAccessArea.REFLECTIVE_CLASSPATH_SCANNING_OVERRIDE); diff --git a/base/src/main/java/de/staropensource/sosengine/base/exception/reflection/InvalidMethodSignatureException.java b/base/src/main/java/de/staropensource/sosengine/base/exception/reflection/InvalidMethodSignatureException.java index a66ca823..298c23a0 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/exception/reflection/InvalidMethodSignatureException.java +++ b/base/src/main/java/de/staropensource/sosengine/base/exception/reflection/InvalidMethodSignatureException.java @@ -24,13 +24,14 @@ import org.jetbrains.annotations.NotNull; /** * Thrown when a method could not be found due to an invalid method signature. * - * @since v1-alpha2 + * @since v1-alpha5 */ public class InvalidMethodSignatureException extends Exception { /** * Constructs this exception. * * @param methodName method name + * @since v1-alpha5 */ public InvalidMethodSignatureException(@NotNull String methodName) { super("Method " + methodName + " has a different method signature"); diff --git a/base/src/main/java/de/staropensource/sosengine/base/internal/implementation/EventListenerMethod.java b/base/src/main/java/de/staropensource/sosengine/base/internal/implementation/EventListenerMethod.java index da9024e6..67b6d291 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/internal/implementation/EventListenerMethod.java +++ b/base/src/main/java/de/staropensource/sosengine/base/internal/implementation/EventListenerMethod.java @@ -31,13 +31,13 @@ import java.lang.reflect.Method; /** * Interface specifically for executing event listener methods. * - * @since v1-alpha0 + * @since v1-alpha5 */ public final class EventListenerMethod extends EventListenerCode { /** * Contains the method to call and get. * - * @since v1-alpha0 + * @since v1-alpha5 */ private final @NotNull ReflectionMethod method; @@ -45,7 +45,7 @@ public final class EventListenerMethod extends EventListenerCode { * Constructs this class. * * @param method method to execute - * @since v1-alpha0 + * @since v1-alpha5 */ public EventListenerMethod(@NotNull Method method) { this.method = Reflect.reflectOn(method); @@ -65,7 +65,7 @@ public final class EventListenerMethod extends EventListenerCode { * @param annotation annotation to get * @return annotation or {@code null} on error * @see ReflectionMethod#getAnnotation(Class) - * @since v1-alpha0 + * @since v1-alpha5 */ public @Nullable T getAnnotation(@NotNull Class annotation) { try { diff --git a/base/src/main/java/de/staropensource/sosengine/base/internal/implementation/package-info.java b/base/src/main/java/de/staropensource/sosengine/base/internal/implementation/package-info.java index eb780f6b..22a9f510 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/internal/implementation/package-info.java +++ b/base/src/main/java/de/staropensource/sosengine/base/internal/implementation/package-info.java @@ -20,6 +20,6 @@ /** * Interfaces and abstract classes which can be used for implementing classes. * - * @since v1-alpha0 + * @since v1-alpha5 */ package de.staropensource.sosengine.base.internal.implementation; diff --git a/base/src/main/java/de/staropensource/sosengine/base/reflection/ReflectionMethod.java b/base/src/main/java/de/staropensource/sosengine/base/reflection/ReflectionMethod.java index 366da21d..ee46546a 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/reflection/ReflectionMethod.java +++ b/base/src/main/java/de/staropensource/sosengine/base/reflection/ReflectionMethod.java @@ -351,7 +351,7 @@ public final class ReflectionMethod { * @throws InvocationTargetException covers exceptions thrown by the method * @throws InstanceMethodFromStaticContextException when the target method is non-static and called from a static context * @throws StaticInitializerException when an the static initializer fails - * @since v1-alpha2 + * @since v1-alpha5 */ public @Nullable Object invoke(Object... args) throws NoAccessException, InvalidMethodSignatureException, InvocationTargetException, InstanceMethodFromStaticContextException, StaticInitializerException { Object returnValue; diff --git a/testapp/src/main/java/module-info.java b/testapp/src/main/java/module-info.java index 67b025ab..c0093155 100644 --- a/testapp/src/main/java/module-info.java +++ b/testapp/src/main/java/module-info.java @@ -2,11 +2,10 @@ * The sos!engine test application, used by engine developers to test their changes. * This module is very uninteresting for non-engine developers. * - * @since v1-alpha1 + * @since v1-alpha5 */ open module sosengine.testapp { // Dependencies // -> Engine requires sosengine.windowing; - // -> Libraries }