From 9e61d0d22582864d184d25a24c226bd46f474b6b Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Fri, 14 Feb 2025 17:20:30 +0100 Subject: [PATCH] GH-110 - Remove deprecations and fix Javadoc warnings. --- .../plugin/core/SimplePluginRegistry.java | 22 ------------------- .../support/PluginRegistryFactoryBean.java | 2 +- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/core/src/main/java/org/springframework/plugin/core/SimplePluginRegistry.java b/core/src/main/java/org/springframework/plugin/core/SimplePluginRegistry.java index 440f4ab..3c38c4d 100644 --- a/core/src/main/java/org/springframework/plugin/core/SimplePluginRegistry.java +++ b/core/src/main/java/org/springframework/plugin/core/SimplePluginRegistry.java @@ -74,28 +74,6 @@ class SimplePluginRegistry, S> extends PluginRegistrySupport return new SimplePluginRegistry<>(plugins); } - /** - * Creates a new {@link SimplePluginRegistry}. - * - * @return - * @deprecated use {@link #empty()} instead. - */ - @Deprecated - public static > SimplePluginRegistry create() { - return of(Collections. emptyList()); - } - - /** - * Creates a new {@link SimplePluginRegistry} with the given {@link Plugin} s. - * - * @return - * @deprecated use {@link #of(List)} instead. - */ - @Deprecated - public static > SimplePluginRegistry create(List plugins) { - return new SimplePluginRegistry<>(plugins); - } - /* (non-Javadoc) * @see org.springframework.plugin.core.PluginRegistrySupport#getPlugins() */ diff --git a/core/src/main/java/org/springframework/plugin/core/support/PluginRegistryFactoryBean.java b/core/src/main/java/org/springframework/plugin/core/support/PluginRegistryFactoryBean.java index 7cbacb5..575a95c 100644 --- a/core/src/main/java/org/springframework/plugin/core/support/PluginRegistryFactoryBean.java +++ b/core/src/main/java/org/springframework/plugin/core/support/PluginRegistryFactoryBean.java @@ -37,7 +37,7 @@ import org.springframework.plugin.core.Plugin; import org.springframework.plugin.core.PluginRegistry; /** - * {@link FactoryBean} to create {@link PluginRegistry} instances. Wraps a {@link BeanListFactoryBean}. + * {@link FactoryBean} to create {@link PluginRegistry} instances. * * @author Oliver Gierke */