This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch guice3 in repository https://gitbox.apache.org/repos/asf/maven-checkstyle-plugin.git
commit a1cbc0f9cd6faac3f5ac1a2a26303d1a2f3a6620 Author: Elliotte Rusty Harold <elh...@ibiblio.org> AuthorDate: Thu Nov 21 05:44:32 2024 -0500 spotless --- .../maven/plugins/checkstyle/resource/LicenseResourceManager.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/checkstyle/resource/LicenseResourceManager.java b/src/main/java/org/apache/maven/plugins/checkstyle/resource/LicenseResourceManager.java index 800b97c..4f28b99 100644 --- a/src/main/java/org/apache/maven/plugins/checkstyle/resource/LicenseResourceManager.java +++ b/src/main/java/org/apache/maven/plugins/checkstyle/resource/LicenseResourceManager.java @@ -19,14 +19,12 @@ package org.apache.maven.plugins.checkstyle.resource; import javax.inject.Inject; +import javax.inject.Named; import java.util.Map; -import org.codehaus.plexus.component.annotations.Component; -import org.codehaus.plexus.component.annotations.Requirement; import org.codehaus.plexus.resource.DefaultResourceManager; import org.codehaus.plexus.resource.PlexusResource; -import org.codehaus.plexus.resource.ResourceManager; import org.codehaus.plexus.resource.loader.ResourceLoader; import org.codehaus.plexus.resource.loader.ResourceNotFoundException; import org.codehaus.plexus.resource.loader.ThreadContextClasspathResourceLoader; @@ -38,12 +36,11 @@ import org.slf4j.LoggerFactory; * * @since 2.12 */ -@Component(role = ResourceManager.class, hint = "license", instantiationStrategy = "per-lookup") +@Named("license") public class LicenseResourceManager extends DefaultResourceManager { private static final Logger LOGGER = LoggerFactory.getLogger(LicenseResourceManager.class); - @Requirement(role = ResourceLoader.class) private Map<String, ResourceLoader> resourceLoaders; @Inject