From a1cbc0f9cd6faac3f5ac1a2a26303d1a2f3a6620 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Thu, 21 Nov 2024 05:44:32 -0500 Subject: [PATCH] spotless --- .../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 800b97c6..4f28b992 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 @@ * * @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 resourceLoaders; @Inject