michael-o commented on a change in pull request #154:
URL: https://github.com/apache/maven-resolver/pull/154#discussion_r825357666



##########
File path: 
maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/Maven2RepositoryLayoutFactory.java
##########
@@ -225,32 +239,9 @@ public URI getLocation( Metadata metadata, boolean upload )
             return checksumLocations;
         }
 
-    }
-
-    private static class Maven2RepositoryLayoutEx
-            extends Maven2RepositoryLayout
-    {
-
-        protected Maven2RepositoryLayoutEx( List<ChecksumAlgorithmFactory> 
checksumAlgorithms )
+        private boolean isChecksum( String extension )
         {
-            super( checksumAlgorithms );
+            return checksumAlgorithms.stream().anyMatch( a -> 
extension.endsWith( "." + a.getFileExtension() ) );

Review comment:
       True, the `a` provides only `md5`, etc. and as you noticed it is 
`XXX.md5`. This makes sense.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to