You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ms...@apache.org on 2026/03/22 19:11:52 UTC
svn commit: r1932465 - pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos
Author: msahyoun
Date: Sun Mar 22 19:11:52 2026
New Revision: 1932465
Log:
PDFBOX-6178, PDFBOX-4076: fix javadoc
Modified:
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSName.java
Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSName.java
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSName.java Sun Mar 22 17:17:43 2026 (r1932464)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSName.java Sun Mar 22 19:11:52 2026 (r1932465)
@@ -707,11 +707,8 @@ public final class COSName extends COSBa
* escape sequences). Using this method preserves the spec-correct, byte-level identity of the
* name even when the bytes are not valid UTF-8.</p>
*
- * <p>Null bytes (0x00) are rejected; the spec explicitly excludes them.</p>
- *
- * @param bytes the raw decoded byte sequence; must not be {@code null} and must not contain 0x00
+ * @param bytes the raw decoded byte sequence; must not be {@code null}
* @return a canonicalised {@code COSName} instance
- * @throws IllegalArgumentException if {@code bytes} contains a null byte
*/
public static COSName getPDFName(byte[] bytes)
{
@@ -751,11 +748,11 @@ public final class COSName extends COSBa
/**
* Private constructor. This will limit the number of COSName objects that are created.
*
- * @param storedBytes The the raw byte sequence that defines this name.
+ * @param bytes The the raw byte sequence that defines this name.
*/
- private COSName(byte[] storedBytes)
+ private COSName(byte[] bytes)
{
- this.nameBytes = storedBytes;
+ this.nameBytes = bytes;
}