Skip to content

Commit

Permalink
Javadoc, revert logic
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Feb 24, 2024
1 parent 95a976c commit fdea33b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public List<ChecksumAlgorithmFactory> getChecksumAlgorithmFactories() {

@Override
public boolean hasChecksums(Artifact artifact) {
return artifactPredicate.isWithoutChecksum(artifact);
return !artifactPredicate.isWithoutChecksum(artifact);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ public String toString() {
* Typical case to return {@code false} (to omit checksums) is for artifact signatures, that are already a
* "sub-artifact" of some main artifact (for example a JAR), and they can be validated by some other means.
*
* @see org.eclipse.aether.spi.connector.checksum.ChecksumPolicy.ChecksumKind
* @see #getChecksumAlgorithmFactories()
* @see org.eclipse.aether.spi.artifact.ArtifactPredicate#isWithoutChecksum(Artifact)
* @since 1.8.0
*/
boolean hasChecksums(Artifact artifact);
Expand Down

0 comments on commit fdea33b

Please sign in to comment.