From 53d98d85f26230493f49e131fd7b6d02aafd473b Mon Sep 17 00:00:00 2001 From: Andrei Rybak Date: Wed, 4 Mar 2026 20:46:34 +0100 Subject: [PATCH] Manifest: fix javadoc of method `item()` Method `getSize` doesn't exist, so replace a reference to it in a documentation comment of method `item()` with `getLength`. Fix the Javadoc syntax of `{@link ...}`, while we're here. Originally noticed in the code imported into the openjdk repository: https://github.com/openjdk/jdk/blob/master/src/java.xml.crypto/share/classes/com/sun/org/apache/xml/internal/security/signature/Manifest.java#L228-L229 --- src/main/java/org/apache/xml/security/signature/Manifest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/xml/security/signature/Manifest.java b/src/main/java/org/apache/xml/security/signature/Manifest.java index b2bd721a9..8fd46c4a3 100644 --- a/src/main/java/org/apache/xml/security/signature/Manifest.java +++ b/src/main/java/org/apache/xml/security/signature/Manifest.java @@ -222,7 +222,7 @@ public int getLength() { /** * Return the ith reference. Valid i - * values are 0 to {link@ getSize}-1. + * values are 0 to {@link #getLength()}-1. * * @param i Index of the requested {@link Reference} * @return the ith reference