Skip to content

Commit a41b6ea

Browse files
committed
🚨 Fix javadoc warnings
DEVSIX-1287
1 parent ced781b commit a41b6ea

File tree

34 files changed

+110
-104
lines changed

34 files changed

+110
-104
lines changed

io/src/main/java/com/itextpdf/io/IOException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public class IOException extends RuntimeException {
136136
public static final String NotAtTrueTypeFile = "{0} is not a true type file";
137137
public static final String PageNumberMustBeGtEq1 = "Page number must be >= 1.";
138138
/**
139-
* @deprecated because naming clash with {@link com itextpdf io font PdfEncodings}
139+
* @deprecated because naming clash with {@link com.itextpdf.io.font.PdfEncodings}
140140
* may produce confusion with imports Superseded by {@link #CharacterCodeException}
141141
*/
142142
@Deprecated

io/src/main/java/com/itextpdf/io/font/OpenTypeParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,14 @@ protected static class CmapTable implements Serializable {
152152
* The map containing the code information for the table 'cmap', encoding 1.0.
153153
* The key is the code and the value is an {@code int[2]} where position 0
154154
* is the glyph number and position 1 is the glyph width normalized to 1000 units.
155-
* {@see TrueTypeFont.UNITS_NORMALIZATION}.
155+
* @see TrueTypeFont#UNITS_NORMALIZATION
156156
*/
157157
Map<Integer, int[]> cmap10;
158158
/**
159159
* The map containing the code information for the table 'cmap', encoding 3.1 in Unicode.
160160
* The key is the code and the value is an {@code int[2]} where position 0
161161
* is the glyph number and position 1 is the glyph width normalized to 1000 units.
162-
* {@see TrueTypeFont.UNITS_NORMALIZATION}.
162+
* @see TrueTypeFont#UNITS_NORMALIZATION
163163
*/
164164
Map<Integer, int[]> cmap31;
165165
Map<Integer, int[]> cmapExt;

io/src/main/java/com/itextpdf/io/font/otf/Glyph.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public boolean equals(Object obj) {
309309

310310
/**
311311
* Gets a Unicode string corresponding to this glyph. In general case it might consist of many characters.
312-
* If this glyph does not have a valid unicode ({@see #hasValidUnicode()}, then a string consisting of a special
312+
* If this glyph does not have a valid unicode ({@link #hasValidUnicode()}), then a string consisting of a special
313313
* Unicode '\ufffd' character is returned.
314314
* @return the Unicode string that corresponds to this glyph
315315
*/
@@ -323,7 +323,8 @@ public String getUnicodeString() {
323323

324324
/**
325325
* Gets Unicode char sequence corresponding to this glyph. In general case it might consist of many characters.
326-
* If this glyph does not have a valid unicode ({@see #hasValidUnicode()}, then a special Unicode '\ufffd' character is returned.
326+
* If this glyph does not have a valid unicode ({@link #hasValidUnicode()}), then a special
327+
* Unicode '\ufffd' character is returned.
327328
* @return the Unicode char sequence that corresponds to this glyph
328329
*/
329330
public char[] getUnicodeChars() {

io/src/main/java/com/itextpdf/io/source/PdfTokenizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ protected static boolean isDelimiterWhitespace(int ch) {
632632
* Helper method to handle content errors. Add file position to {@code PdfRuntimeException}.
633633
* @param error message.
634634
* @param messageParams error params.
635-
* @wrap error message into {@code PdfRuntimeException} and add position in file.
635+
* @throws IOException wrap error message into {@code PdfRuntimeException} and add position in file.
636636
*/
637637
public void throwError(String error, Object... messageParams) {
638638
try {

kernel/src/main/java/com/itextpdf/kernel/font/PdfFont.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ protected PdfFont() {
104104
* Get glyph by unicode
105105
*
106106
* @param unicode a unicode code point
107-
* @return {@see Glyph} if it exists or .NOTDEF if supported, otherwise {@code null}.
107+
* @return {@link Glyph} if it exists or .NOTDEF if supported, otherwise {@code null}.
108108
*/
109109
public abstract Glyph getGlyph(int unicode);
110110

kernel/src/main/java/com/itextpdf/kernel/pdf/PdfDocument.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,7 @@ protected XMPMeta updateDefaultXmpMetadata() throws XMPException {
18281828
/**
18291829
* List all newly added or loaded fonts
18301830
*
1831-
* @return List of {@see PdfFonts}.
1831+
* @return List of {@link PdfFont}.
18321832
*/
18331833
protected Collection<PdfFont> getDocumentFonts() {
18341834
return documentFonts.values();

kernel/src/main/java/com/itextpdf/kernel/pdf/PdfPage.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ public Rectangle getTrimBox() {
661661
* Get decoded bytes for the whole page content.
662662
*
663663
* @return byte array.
664-
* @throws PdfException in case of any {@link IOException).
664+
* @throws PdfException in case of any {@link IOException}.
665665
*/
666666
public byte[] getContentBytes() {
667667
try {
@@ -686,7 +686,7 @@ public byte[] getContentBytes() {
686686
*
687687
* @param index index of stream inside Content.
688688
* @return byte array.
689-
* @throws PdfException in case of any {@link IOException).
689+
* @throws PdfException in case of any {@link IOException}.
690690
*/
691691
public byte[] getStreamBytes(int index) {
692692
return getContentStream(index).getBytes();
@@ -736,7 +736,7 @@ public PdfPage setAdditionalAction(PdfName key, PdfAction action) {
736736
* Gets array of annotation dictionaries that shall contain indirect references
737737
* to all annotations associated with the page.
738738
*
739-
* @return the {@link List<PdfAnnotation>} containing all page's annotations.
739+
* @return the {@link List}&lt;{@link PdfAnnotation}&gt; containing all page's annotations.
740740
*/
741741
public List<PdfAnnotation> getAnnotations() {
742742
List<PdfAnnotation> annotations = new ArrayList<>();

kernel/src/main/java/com/itextpdf/kernel/pdf/PdfStream.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,15 @@ This file is part of the iText (R) project.
4444
package com.itextpdf.kernel.pdf;
4545

4646
import com.itextpdf.io.LogMessageConstant;
47-
import com.itextpdf.kernel.PdfException;
4847
import com.itextpdf.io.source.ByteArrayOutputStream;
48+
import com.itextpdf.kernel.PdfException;
49+
import org.slf4j.LoggerFactory;
4950

5051
import java.io.IOException;
5152
import java.io.InputStream;
5253
import java.io.ObjectOutputStream;
5354
import java.io.Serializable;
5455

55-
import org.slf4j.LoggerFactory;
56-
5756
/**
5857
* Representation of a stream as described in the PDF Specification.
5958
*/
@@ -71,7 +70,7 @@ public class PdfStream extends PdfDictionary {
7170
/**
7271
* Constructs a {@code PdfStream}-object.
7372
*
74-
* @param bytes initial content of {@see PdfOutputStream}.
73+
* @param bytes initial content of {@link PdfOutputStream}.
7574
* @param compressionLevel the compression level (0 = best speed, 9 = best compression, -1 is default)
7675
*/
7776
public PdfStream(byte[] bytes, int compressionLevel) {
@@ -401,7 +400,8 @@ protected long getOffset() {
401400
}
402401

403402
/**
404-
* Update length manually in case its correction. {@see PdfReader.checkPdfStreamLength()} method.
403+
* Update length manually in case its correction.
404+
* @see com.itextpdf.kernel.pdf.PdfReader#checkPdfStreamLength(PdfStream)
405405
*/
406406
protected void updateLength(int length) {
407407
this.length = length;

kernel/src/main/java/com/itextpdf/kernel/pdf/action/PdfAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ public static PdfAction createResetForm(Object[] names, int flags) {
585585
}
586586

587587
/**
588-
* Adds an additional action to the provided {@link PdfObjectWrapper<PdfDictionary>} wrapper.
588+
* Adds an additional action to the provided {@link PdfObjectWrapper}&lt;{@link PdfDictionary}&gt; wrapper.
589589
*
590590
* @param wrapper the wrapper to add an additional action to
591591
* @param key a {@link PdfName} specifying the name of an additional action

kernel/src/main/java/com/itextpdf/kernel/pdf/annot/PdfAnnotation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public PdfAnnotation setAction(PdfAction action) {
370370

371371
/**
372372
* Sets an additional {@link PdfAction} to this annotation which will be performed in response to
373-
* the specific trigger event defined by {@param key}. See ISO-320001 12.6.3, "Trigger Events".
373+
* the specific trigger event defined by {@code key}. See ISO-320001 12.6.3, "Trigger Events".
374374
* @param key a {@link PdfName} that denotes a type of the additional action to set.
375375
* @param action {@link PdfAction} to set as additional to this annotation.
376376
* @return this {@link PdfAnnotation} instance.

0 commit comments

Comments
 (0)