You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2024/11/21 10:44:39 UTC
(maven-checkstyle-plugin) branch guice3 created (now a1cbc0f)
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a change to branch guice3
in repository https://gitbox.apache.org/repos/asf/maven-checkstyle-plugin.git
at a1cbc0f spotless
This branch includes the following new commits:
new a1cbc0f spotless
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(maven-checkstyle-plugin) 01/01: spotless
Posted by el...@apache.org.
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 <el...@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