From 1f25795c945541969e4166acae458c07adf648bf Mon Sep 17 00:00:00 2001 From: Artur- <260340+Artur-@users.noreply.github.com> Date: Tue, 1 Dec 2026 14:32:03 +0000 Subject: [PATCH] docs: reconcile @since tags Automated reconciliation against the published release history: add missing tags, correct wrong ones, create minimal @since javadoc for undocumented types, and remove redundant tags. --- .../src/main/java/com/vaadin/flow/server/frontend/Options.java | 2 ++ .../java/com/vaadin/flow/component/internal/UIInternals.java | 1 + .../src/main/java/com/vaadin/flow/internal/BundleUtils.java | 3 +++ .../src/main/java/com/vaadin/flow/internal/FileIOUtils.java | 1 + .../main/java/com/vaadin/flow/internal/JsStringFallbacks.java | 2 ++ .../src/main/java/com/vaadin/flow/internal/PushUtil.java | 2 ++ .../src/main/java/com/vaadin/flow/internal/ReflectTools.java | 1 + .../main/java/com/vaadin/flow/internal/SessionLockScope.java | 2 ++ .../main/java/com/vaadin/flow/internal/SuppressForbidden.java | 2 ++ flow-server/src/main/java/com/vaadin/flow/js/JsInvokers.java | 1 + .../src/main/java/com/vaadin/flow/js/JsStringFallback.java | 2 ++ .../src/main/java/com/vaadin/flow/server/Constants.java | 2 ++ .../java/com/vaadin/flow/server/FailedUIRequestException.java | 2 ++ .../src/main/java/com/vaadin/flow/server/InitParameters.java | 2 ++ .../java/com/vaadin/flow/server/streams/DownloadEvent.java | 2 ++ .../com/vaadin/base/devserver/startup/DevModeInitializer.java | 1 + 16 files changed, 28 insertions(+) diff --git a/flow-build-tools/src/main/java/com/vaadin/flow/server/frontend/Options.java b/flow-build-tools/src/main/java/com/vaadin/flow/server/frontend/Options.java index b7cf7cc8998..b676716e3f9 100644 --- a/flow-build-tools/src/main/java/com/vaadin/flow/server/frontend/Options.java +++ b/flow-build-tools/src/main/java/com/vaadin/flow/server/frontend/Options.java @@ -1154,6 +1154,7 @@ public Options withNpmExcludeWebComponents(boolean exclude) { * local path. * * @return {@code true} if exotic versions are allowed + * @since 25.4 */ public boolean isNpmAllowExoticVersions() { return npmAllowExoticVersions; @@ -1169,6 +1170,7 @@ public boolean isNpmAllowExoticVersions() { * @param allow * whether to allow exotic versions * @return this builder + * @since 25.4 */ public Options withNpmAllowExoticVersions(boolean allow) { this.npmAllowExoticVersions = allow; diff --git a/flow-server/src/main/java/com/vaadin/flow/component/internal/UIInternals.java b/flow-server/src/main/java/com/vaadin/flow/component/internal/UIInternals.java index d89001df285..ef9ebb80eb9 100644 --- a/flow-server/src/main/java/com/vaadin/flow/component/internal/UIInternals.java +++ b/flow-server/src/main/java/com/vaadin/flow/component/internal/UIInternals.java @@ -1371,6 +1371,7 @@ public VaadinSession getSession() { * * @return {@code true} if the related UI is the current UI and its session * is locked by the current thread, {@code false} otherwise + * @since 25.4 */ public boolean isCurrentAndLocked() { return UI.getCurrent() == ui && session != null && session.hasLock(); diff --git a/flow-server/src/main/java/com/vaadin/flow/internal/BundleUtils.java b/flow-server/src/main/java/com/vaadin/flow/internal/BundleUtils.java index 697b804a42f..8b48539c52d 100644 --- a/flow-server/src/main/java/com/vaadin/flow/internal/BundleUtils.java +++ b/flow-server/src/main/java/com/vaadin/flow/internal/BundleUtils.java @@ -50,6 +50,8 @@ public final class BundleUtils { * The key of the stats.json entry that lists the identifiers of the * functions the bundle registers for JavaScript definitions, event data and * event filters. + * + * @since 25.4 */ public static final String JS_DEFINITION_FUNCTION_IDS_STATS_KEY = "jsDefinitionFunctionIds"; @@ -213,6 +215,7 @@ public static boolean isPreCompiledProductionBundle() { * the identifiers of the functions that the class declares, * asked for only when the class is checked, not * null + * @since 25.4 */ public static void checkJsFunctionsBundled(Class declaringType, Supplier> functionIds) { diff --git a/flow-server/src/main/java/com/vaadin/flow/internal/FileIOUtils.java b/flow-server/src/main/java/com/vaadin/flow/internal/FileIOUtils.java index fd9e822e79e..6d7028b15e5 100644 --- a/flow-server/src/main/java/com/vaadin/flow/internal/FileIOUtils.java +++ b/flow-server/src/main/java/com/vaadin/flow/internal/FileIOUtils.java @@ -666,6 +666,7 @@ && belongsToGradleBuild(candidate.getParent())) { * @return the resources folder, or {@code null} if the application does not * run from the output of a Gradle source set or the folder does not * exist + * @since 25.4 */ public static File getGradleResourceFolderFromClasspath() { try { diff --git a/flow-server/src/main/java/com/vaadin/flow/internal/JsStringFallbacks.java b/flow-server/src/main/java/com/vaadin/flow/internal/JsStringFallbacks.java index 2b3fc8cc75b..e6302335790 100644 --- a/flow-server/src/main/java/com/vaadin/flow/internal/JsStringFallbacks.java +++ b/flow-server/src/main/java/com/vaadin/flow/internal/JsStringFallbacks.java @@ -67,6 +67,8 @@ * bundle. *

* For internal use only. May be renamed or removed in a future release. + * + * @since 25.4 */ public final class JsStringFallbacks { diff --git a/flow-server/src/main/java/com/vaadin/flow/internal/PushUtil.java b/flow-server/src/main/java/com/vaadin/flow/internal/PushUtil.java index 7b3e00d3f7b..22af3f6dd7e 100644 --- a/flow-server/src/main/java/com/vaadin/flow/internal/PushUtil.java +++ b/flow-server/src/main/java/com/vaadin/flow/internal/PushUtil.java @@ -26,6 +26,8 @@ * Utility methods for server push. *

* For internal use only. May be renamed or removed in a future release. + * + * @since 25.4 */ public final class PushUtil { diff --git a/flow-server/src/main/java/com/vaadin/flow/internal/ReflectTools.java b/flow-server/src/main/java/com/vaadin/flow/internal/ReflectTools.java index 2aee1cf655b..6ee6811d256 100644 --- a/flow-server/src/main/java/com/vaadin/flow/internal/ReflectTools.java +++ b/flow-server/src/main/java/com/vaadin/flow/internal/ReflectTools.java @@ -187,6 +187,7 @@ public static Optional findDeclaredMethod(Class cls, * @param type * the type to get the public methods of, not null * @return the public methods of the type, not null + * @since 25.4 */ public static List getCurrentPublicMethods(Class type) { List methods = new ArrayList<>(); diff --git a/flow-server/src/main/java/com/vaadin/flow/internal/SessionLockScope.java b/flow-server/src/main/java/com/vaadin/flow/internal/SessionLockScope.java index 1eadd467094..49cc57090d8 100644 --- a/flow-server/src/main/java/com/vaadin/flow/internal/SessionLockScope.java +++ b/flow-server/src/main/java/com/vaadin/flow/internal/SessionLockScope.java @@ -33,6 +33,8 @@ * that unlocking runs rely on it. *

* For internal use only. May be renamed or removed in a future release. + * + * @since 25.4 */ public final class SessionLockScope implements AutoCloseable { diff --git a/flow-server/src/main/java/com/vaadin/flow/internal/SuppressForbidden.java b/flow-server/src/main/java/com/vaadin/flow/internal/SuppressForbidden.java index 6a9ba66c683..e3bae4eacce 100644 --- a/flow-server/src/main/java/com/vaadin/flow/internal/SuppressForbidden.java +++ b/flow-server/src/main/java/com/vaadin/flow/internal/SuppressForbidden.java @@ -31,6 +31,8 @@ * a call into a small annotated method instead. *

* For internal use only. May be renamed or removed in a future release. + * + * @since 25.4 */ @Retention(RetentionPolicy.CLASS) @Target({ ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR }) diff --git a/flow-server/src/main/java/com/vaadin/flow/js/JsInvokers.java b/flow-server/src/main/java/com/vaadin/flow/js/JsInvokers.java index 087f78426e7..0e70b6406e9 100644 --- a/flow-server/src/main/java/com/vaadin/flow/js/JsInvokers.java +++ b/flow-server/src/main/java/com/vaadin/flow/js/JsInvokers.java @@ -58,6 +58,7 @@ * @see Element#executeJs(Class) * @see Page#executeJs(Class) * @see JsSnippets + * @since 25.4 */ public interface JsInvokers extends Serializable { } diff --git a/flow-server/src/main/java/com/vaadin/flow/js/JsStringFallback.java b/flow-server/src/main/java/com/vaadin/flow/js/JsStringFallback.java index 52094dbbd49..53c7a7398b9 100644 --- a/flow-server/src/main/java/com/vaadin/flow/js/JsStringFallback.java +++ b/flow-server/src/main/java/com/vaadin/flow/js/JsStringFallback.java @@ -98,6 +98,8 @@ * same parameter count, two methods of one interface with the same name and * parameter count, or a filter or event data value that is a property path, * which the browser reads without compiling it. + * + * @since 25.4 */ @Documented @Retention(RetentionPolicy.RUNTIME) diff --git a/flow-server/src/main/java/com/vaadin/flow/server/Constants.java b/flow-server/src/main/java/com/vaadin/flow/server/Constants.java index c43335c9292..477e4467277 100644 --- a/flow-server/src/main/java/com/vaadin/flow/server/Constants.java +++ b/flow-server/src/main/java/com/vaadin/flow/server/Constants.java @@ -76,6 +76,8 @@ public final class Constants implements Serializable { * The resource that lists the {@code @JsStringFallback} interfaces the * build found, one class name per entry of a JSON array, relative to * {@link #VAADIN_SERVLET_RESOURCES}. + * + * @since 25.4 */ public static final String JS_STRING_FALLBACKS_FILE = Constants.VAADIN_CONFIGURATION + "js-string-fallbacks.json"; diff --git a/flow-server/src/main/java/com/vaadin/flow/server/FailedUIRequestException.java b/flow-server/src/main/java/com/vaadin/flow/server/FailedUIRequestException.java index 55393252681..0f2cdeab052 100644 --- a/flow-server/src/main/java/com/vaadin/flow/server/FailedUIRequestException.java +++ b/flow-server/src/main/java/com/vaadin/flow/server/FailedUIRequestException.java @@ -30,6 +30,8 @@ * {@link SynchronizedRequestHandler#handleRequest(VaadinSession, VaadinRequest, VaadinResponse)} * directly can catch this exception and handle the original exception from * {@link #getCause()}. + * + * @since 25.4 */ public final class FailedUIRequestException extends RuntimeException { diff --git a/flow-server/src/main/java/com/vaadin/flow/server/InitParameters.java b/flow-server/src/main/java/com/vaadin/flow/server/InitParameters.java index 1bdeeb6cf7f..35900a05baa 100644 --- a/flow-server/src/main/java/com/vaadin/flow/server/InitParameters.java +++ b/flow-server/src/main/java/com/vaadin/flow/server/InitParameters.java @@ -413,6 +413,8 @@ public class InitParameters implements Serializable { * Configuration name for allowing npm packages to be declared with an * exotic version, such as a tarball URL or a git repository, rather than a * registry version or a local path. + * + * @since 25.4 */ public static final String NPM_ALLOW_EXOTIC_VERSIONS = "npm.allowExoticVersions"; diff --git a/flow-server/src/main/java/com/vaadin/flow/server/streams/DownloadEvent.java b/flow-server/src/main/java/com/vaadin/flow/server/streams/DownloadEvent.java index 0cf6c2d71cb..a572939e984 100644 --- a/flow-server/src/main/java/com/vaadin/flow/server/streams/DownloadEvent.java +++ b/flow-server/src/main/java/com/vaadin/flow/server/streams/DownloadEvent.java @@ -199,6 +199,7 @@ public void setFileName(String fileName) { * the name of the file * @see #attachment(String) * @see #inline(String) + * @since 25.4 */ public void fileName(String fileName) { if (setName(fileName)) { @@ -238,6 +239,7 @@ void fileName(String fileName, boolean inlineByDefault) { * * @param fileName * the name of the saved file + * @since 25.4 */ public void attachment(String fileName) { requestedType = ATTACHMENT; diff --git a/vaadin-dev-server/src/main/java/com/vaadin/base/devserver/startup/DevModeInitializer.java b/vaadin-dev-server/src/main/java/com/vaadin/base/devserver/startup/DevModeInitializer.java index 5ca79b816f6..7a7c4d44ee7 100644 --- a/vaadin-dev-server/src/main/java/com/vaadin/base/devserver/startup/DevModeInitializer.java +++ b/vaadin-dev-server/src/main/java/com/vaadin/base/devserver/startup/DevModeInitializer.java @@ -184,6 +184,7 @@ public DevModeInitializer() { * @param configuration * the configuration of the application, not null * @return the folder, not null + * @since 25.4 */ public static File getServletResourceOutputDirectory( AbstractConfiguration configuration) {