in src/main/java/org/apache/maven/resolver/internal/ant/ConverterUtils.java [137:149]
private static RepositoryPolicy toPolicy(
RemoteRepository.Policy policy, boolean enabled, String updates, String checksums) {
if (policy != null) {
enabled = policy.isEnabled();
if (policy.getChecksums() != null) {
checksums = policy.getChecksums();
}
if (policy.getUpdates() != null) {
updates = policy.getUpdates();
}
}
return new RepositoryPolicy(enabled, updates, checksums);
}