diff options
author | Martin Stockhammer <martin_s@apache.org> | 2018-04-01 09:54:30 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2018-04-01 09:54:30 +0200 |
commit | f8a9bc1640ddbe2748eb7bc8e68b4dd3dd84fa51 (patch) | |
tree | 1721e44ab24c19e5ebb4a02982942a3e5e28f4b5 /archiva-modules/archiva-base/archiva-policies | |
parent | fbf5e991b3cbe86b6a60aae4f127e07b30bb374a (diff) | |
download | archiva-f8a9bc1640ddbe2748eb7bc8e68b4dd3dd84fa51.tar.gz archiva-f8a9bc1640ddbe2748eb7bc8e68b4dd3dd84fa51.zip |
Changing the event system to use the checksum module
Diffstat (limited to 'archiva-modules/archiva-base/archiva-policies')
-rw-r--r-- | archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/ChecksumPolicy.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/ChecksumPolicy.java b/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/ChecksumPolicy.java index 146ea8809..c2004d139 100644 --- a/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/ChecksumPolicy.java +++ b/archiva-modules/archiva-base/archiva-policies/src/main/java/org/apache/archiva/policies/ChecksumPolicy.java @@ -30,6 +30,7 @@ import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import java.util.Properties; @@ -66,7 +67,7 @@ public class ChecksumPolicy */ public static final String FIX = "fix"; - private ChecksumAlgorithm[] algorithms = new ChecksumAlgorithm[]{ ChecksumAlgorithm.SHA1, ChecksumAlgorithm.MD5 }; + private List<ChecksumAlgorithm> algorithms = Arrays.asList( ChecksumAlgorithm.SHA256, ChecksumAlgorithm.SHA1, ChecksumAlgorithm.MD5 ); private List<String> options = new ArrayList<>( 3 ); |