This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/maven-build-cache-extension.git
The following commit(s) were added to refs/heads/master by this push:
new f309385 Fix checkstyle warnings
f309385 is described below
commit f309385b704b031997e20be1998657e52f3b1e73
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Mon Jan 6 15:05:17 2025 +0100
Fix checkstyle warnings
---
src/main/java/org/apache/maven/buildcache/CacheControllerImpl.java | 3 ++-
.../java/org/apache/maven/buildcache/checksum/MavenProjectInput.java | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/maven/buildcache/CacheControllerImpl.java
b/src/main/java/org/apache/maven/buildcache/CacheControllerImpl.java
index 6cc644f..5a77473 100644
--- a/src/main/java/org/apache/maven/buildcache/CacheControllerImpl.java
+++ b/src/main/java/org/apache/maven/buildcache/CacheControllerImpl.java
@@ -140,7 +140,7 @@ public class CacheControllerImpl implements CacheController
{
private final Map<String, Path> attachedResourcesPathsById = new
HashMap<>();
private int attachedResourceCounter = 0;
-
+ // CHECKSTYLE_OFF: ParameterNumber
@Inject
public CacheControllerImpl(
MavenProjectHelper projectHelper,
@@ -154,6 +154,7 @@ public class CacheControllerImpl implements CacheController
{
RestoredArtifactHandler restoreArtifactHandler,
LifecyclePhasesHelper lifecyclePhasesHelper,
MavenSession session) {
+ // CHECKSTYLE_OFF: ParameterNumber
this.projectHelper = projectHelper;
this.localCache = localCache;
this.remoteCache = remoteCache;
diff --git
a/src/main/java/org/apache/maven/buildcache/checksum/MavenProjectInput.java
b/src/main/java/org/apache/maven/buildcache/checksum/MavenProjectInput.java
index bd2a728..a3cb065 100644
--- a/src/main/java/org/apache/maven/buildcache/checksum/MavenProjectInput.java
+++ b/src/main/java/org/apache/maven/buildcache/checksum/MavenProjectInput.java
@@ -685,7 +685,7 @@ public class MavenProjectInput {
null,
false);
}
-
+ // CHECKSTYLE_OFF: ParameterNumber
private Artifact createArtifact(
String groupId,
String artifactId,
@@ -695,6 +695,7 @@ public class MavenProjectInput {
String scope,
String inheritedScope,
boolean optional) {
+ // CHECKSTYLE_OFF: ParameterNumber
String desiredScope = Artifact.SCOPE_RUNTIME;
if (inheritedScope == null) {