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-shared-jar.git
commit 6074d7e0cb6c8206ed8aac6db6ea3b05b16a78a5 Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Mon Nov 16 22:46:53 2026 +0000 Use System.lineSeparator(), @Override and try-with-resources --- .../maven/shared/jar/identification/hash/JarBytecodeHashAnalyzer.java | 1 + .../shared/jar/identification/repository/EmptyRepositoryHashSearch.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/main/java/org/apache/maven/shared/jar/identification/hash/JarBytecodeHashAnalyzer.java b/src/main/java/org/apache/maven/shared/jar/identification/hash/JarBytecodeHashAnalyzer.java index 8019a98..a338578 100644 --- a/src/main/java/org/apache/maven/shared/jar/identification/hash/JarBytecodeHashAnalyzer.java +++ b/src/main/java/org/apache/maven/shared/jar/identification/hash/JarBytecodeHashAnalyzer.java @@ -43,6 +43,7 @@ import org.slf4j.LoggerFactory; public class JarBytecodeHashAnalyzer implements JarHashAnalyzer { private final Logger logger = LoggerFactory.getLogger(getClass()); + @Override public String computeHash(JarAnalyzer jarAnalyzer) { JarData jarData = jarAnalyzer.getJarData(); diff --git a/src/main/java/org/apache/maven/shared/jar/identification/repository/EmptyRepositoryHashSearch.java b/src/main/java/org/apache/maven/shared/jar/identification/repository/EmptyRepositoryHashSearch.java index 784dfd8..b133f72 100644 --- a/src/main/java/org/apache/maven/shared/jar/identification/repository/EmptyRepositoryHashSearch.java +++ b/src/main/java/org/apache/maven/shared/jar/identification/repository/EmptyRepositoryHashSearch.java @@ -36,10 +36,12 @@ import org.apache.maven.artifact.Artifact; @Singleton @Named("empty") public class EmptyRepositoryHashSearch implements RepositoryHashSearch { + @Override public List<Artifact> searchBytecodeHash(String hash) { return Collections.emptyList(); } + @Override public List<Artifact> searchFileHash(String hash) { return Collections.emptyList(); }
