Skip to content

Commit 935ecd1

Browse files
committed
Make it PRESENT vs MISSING
1 parent 1d25bf7 commit 935ecd1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/src/main/java/eu/maveniverse/maven/njord/shared/impl/publisher/spi/SourceAndJavadocValidatorFactory.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,24 @@ public void validate(ArtifactStore artifactStore, ValidationResultCollector coll
4444
for (Artifact artifact : artifactStore.artifacts()) {
4545
if (artifact.getClassifier().isEmpty() && "jar".equals(artifact.getExtension())) {
4646
ValidationResultCollector chkCollector = collector.child(ArtifactIdUtils.toId(artifact));
47-
HashSet<String> ok = new HashSet<>();
47+
HashSet<String> present = new HashSet<>();
4848
HashSet<String> missing = new HashSet<>();
4949
Optional<InputStream> c = artifactStore.artifactContent(new SubArtifact(artifact, "sources", "jar"));
5050
if (c.isPresent()) {
51-
ok.add("sources");
51+
present.add("sources");
5252
c.orElseThrow().close();
5353
} else {
5454
missing.add("sources");
5555
}
5656
c = artifactStore.artifactContent(new SubArtifact(artifact, "javadoc", "jar"));
5757
if (c.isPresent()) {
58-
ok.add("javadoc");
58+
present.add("javadoc");
5959
c.orElseThrow().close();
6060
} else {
6161
missing.add("javadoc");
6262
}
63-
if (!ok.isEmpty()) {
64-
chkCollector.addInfo("OK: " + String.join(", ", ok));
63+
if (!present.isEmpty()) {
64+
chkCollector.addInfo("PRESENT: " + String.join(", ", present));
6565
}
6666
if (!missing.isEmpty()) {
6767
chkCollector.addError("MISSING: " + String.join(", ", missing));

0 commit comments

Comments
 (0)