Skip to content

Commit 50949e6

Browse files
committed
Fix javadoc warnings
1 parent 95413ad commit 50949e6

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

src/main/java/com/itextpdf/pdfcleanup/PdfCleanUpTool.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public class PdfCleanUpTool {
106106
/**
107107
* Used as the criterion of a good approximation of rounded line joins
108108
* and line caps.
109-
* @deprecated
109+
* @deprecated
110110
*/
111111
@Deprecated
112112
public static double arcTolerance = 0.0025;
@@ -127,7 +127,7 @@ public boolean isProcessAnnotations() {
127127
/**
128128
* Set if page annotations will be processed
129129
* Default processing behaviour: remove annotation if there is overlap with a redaction region
130-
* @param processAnnotations
130+
* @param processAnnotations if page annotations will be processed
131131
*/
132132
public void setProcessAnnotations(boolean processAnnotations) {
133133
this.processAnnotations = processAnnotations;

src/main/java/com/itextpdf/pdfcleanup/autosweep/ICleanupStrategy.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ public interface ICleanupStrategy extends ILocationExtractionStrategy {
5454

5555
/**
5656
* Get the color in which redaction is to take place
57+
*
58+
* @param location where to get the redaction color from
59+
* @return a {@link Color}
5760
*/
5861
Color getRedactionColor(IPdfTextLocation location);
5962

src/main/java/com/itextpdf/pdfcleanup/autosweep/PdfAutoSweep.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ private void resetStrategy() {
8585
* Get all {@link PdfCleanUpLocation} objects from a given {@link PdfPage}
8686
*
8787
* @param page the {@link PdfPage} to be processed
88+
* @return a List of {@link PdfCleanUpLocation} objects
8889
*/
8990
public List<PdfCleanUpLocation> getPdfCleanUpLocations(PdfPage page) {
9091
// get document
@@ -115,6 +116,7 @@ public List<PdfCleanUpLocation> getPdfCleanUpLocations(PdfPage page) {
115116
* Get all {@link PdfCleanUpLocation} objects from a given {@link PdfDocument}
116117
*
117118
* @param doc the {@link PdfDocument} to be processed
119+
* @return a List of {@link PdfCleanUpLocation} objects
118120
*/
119121
public List<PdfCleanUpLocation> getPdfCleanUpLocations(PdfDocument doc) {
120122
PdfDocumentContentParser parser = new PdfDocumentContentParser(doc);
@@ -173,7 +175,7 @@ public void highlight(PdfPage pdfPage) {
173175
* Perform cleanup of areas of interest on a given {@link PdfDocument}
174176
*
175177
* @param pdfDocument the {@link PdfDocument} to be redacted
176-
* @throws IOException
178+
* @throws IOException an {@link IOException}
177179
*/
178180
public void cleanUp(PdfDocument pdfDocument) throws IOException {
179181
List<PdfCleanUpLocation> cleanUpLocations = getPdfCleanUpLocations(pdfDocument);
@@ -187,7 +189,7 @@ public void cleanUp(PdfDocument pdfDocument) throws IOException {
187189
* Perform cleanup of areas of interest on a given {@link PdfPage}
188190
*
189191
* @param pdfPage the {@link PdfPage} to be redacted
190-
* @throws IOException
192+
* @throws IOException an {@link IOException}
191193
*/
192194
public void cleanUp(PdfPage pdfPage) throws IOException {
193195
List<PdfCleanUpLocation> cleanUpLocations = getPdfCleanUpLocations(pdfPage);
@@ -202,7 +204,7 @@ public void cleanUp(PdfPage pdfPage) throws IOException {
202204
* This method will add all redaction annotations to the given document, allowing
203205
* the end-user to choose which redactions to keep or delete.
204206
*
205-
* @param pdfDocument
207+
* @param pdfDocument the document to clean up
206208
*/
207209
public void tentativeCleanUp(PdfDocument pdfDocument) {
208210
for (int i = 1; i <= pdfDocument.getNumberOfPages(); i++)
@@ -214,7 +216,7 @@ public void tentativeCleanUp(PdfDocument pdfDocument) {
214216
* This method will add all redaction annotations to the given page, allowing
215217
* the end-user to choose which redactions to keep or delete.
216218
*
217-
* @param pdfPage
219+
* @param pdfPage the page to clean up
218220
*/
219221
public void tentativeCleanUp(PdfPage pdfPage) {
220222
List<PdfCleanUpLocation> cleanUpLocations = getPdfCleanUpLocations(pdfPage);

src/main/java/com/itextpdf/pdfcleanup/package-info.java

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)