From a7d54840501e04483d53d21d5250d4040d2ed1ea Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Sun, 14 Jun 2026 19:54:55 +0200 Subject: [PATCH] Javadoc update Update Javadoc of policies, precisely explaining which policy what expects or enforces. Fixes #1920 --- .../org/eclipse/aether/repository/RepositoryPolicy.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maven-resolver-api/src/main/java/org/eclipse/aether/repository/RepositoryPolicy.java b/maven-resolver-api/src/main/java/org/eclipse/aether/repository/RepositoryPolicy.java index 3f6aeea447..00a0a43de3 100644 --- a/maven-resolver-api/src/main/java/org/eclipse/aether/repository/RepositoryPolicy.java +++ b/maven-resolver-api/src/main/java/org/eclipse/aether/repository/RepositoryPolicy.java @@ -44,17 +44,17 @@ public final class RepositoryPolicy { public static final String UPDATE_POLICY_INTERVAL = "interval"; /** - * Verify checksums and fail the resolution if they do not match. + * Enforce presence of checksums and fail the resolution if they do not match or are absent. */ public static final String CHECKSUM_POLICY_FAIL = "fail"; /** - * Verify checksums and warn if they do not match. + * Expect presence of checksums and warn if they do not match or are absent. */ public static final String CHECKSUM_POLICY_WARN = "warn"; /** - * Do not verify checksums. + * Ignore presence and verification of checksums. */ public static final String CHECKSUM_POLICY_IGNORE = "ignore";