gnodet commented on code in PR #411:
URL: https://github.com/apache/maven-archiver/pull/411#discussion_r4108650087
##########
src/main/java/org/apache/maven/shared/archiver/MavenArchiveConfiguration.java:
##########
@@ -152,19 +152,29 @@ public void setManifest(ManifestConfiguration manifest) {
}
/**
- * <p>addManifestEntry.</p>
+ * Adds a single manifest entry.
*
- * @param key the key of the entry
- * @param value the value of the entry
+ * <p>A {@code null} value is accepted and will produce an empty-string
attribute in the manifest.
+ * This is intentional: it allows callers to explicitly request an empty
manifest entry.
+ * Be careful not to pass {@code null} unintentionally (e.g., from an
unguarded map lookup),
+ * as the resulting empty attribute will not indicate any error.</p>
+ *
+ * @param key the manifest attribute name
+ * @param value the manifest attribute value; {@code null} is treated as
an empty string
Review Comment:
Fixed in 5303e3083e47326e181bd2817aae05a5a71d52df: added the same null-value
Javadoc to `ManifestSection.addManifestEntry()`, `addManifestEntries()`, and
`getManifestEntries()`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]