From b69448b24b96fc7320127c480ada62fbabe62ce7 Mon Sep 17 00:00:00 2001 From: Simon Pepping Date: Wed, 18 Aug 2010 09:05:36 +0000 Subject: [PATCH] Fixed javadoc, checkstyle and ant warnings git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@986602 13f79535-47bb-0310-9956-ffa450edef68 --- build.xml | 8 ++++---- .../java/org/apache/fop/hyphenation/UnicodeClasses.java | 2 +- src/java/org/apache/fop/fonts/FontCache.java | 2 +- src/java/org/apache/fop/pdf/PDFText.java | 2 +- .../apache/fop/render/rtf/TextAttributesConverter.java | 2 +- .../apache/fop/render/rtf/rtflib/rtfdoc/RtfFootnote.java | 3 +-- src/java/org/apache/fop/tools/anttasks/FileCompare.java | 4 ++-- 7 files changed, 11 insertions(+), 12 deletions(-) diff --git a/build.xml b/build.xml index a54b64856..8b6c8142e 100644 --- a/build.xml +++ b/build.xml @@ -330,7 +330,7 @@ list of possible build targets. - + @@ -339,7 +339,7 @@ list of possible build targets. - + @@ -351,7 +351,7 @@ list of possible build targets. - + @@ -724,7 +724,7 @@ list of possible build targets. - + diff --git a/src/codegen/unicode/java/org/apache/fop/hyphenation/UnicodeClasses.java b/src/codegen/unicode/java/org/apache/fop/hyphenation/UnicodeClasses.java index 9ea35581d..263a1c694 100644 --- a/src/codegen/unicode/java/org/apache/fop/hyphenation/UnicodeClasses.java +++ b/src/codegen/unicode/java/org/apache/fop/hyphenation/UnicodeClasses.java @@ -160,7 +160,7 @@ public final class UnicodeClasses { * @param unidataPath path to the directory with UCD files * @param outfilePath output file * @throws IOException if the input files are not found - * @throws URISyntaxException + * @throws URISyntaxException if {@code unidataPath} cannot be converted to a URI */ public static void fromUCD(boolean hexcode, String unidataPath, String outfilePath) throws IOException, URISyntaxException { diff --git a/src/java/org/apache/fop/fonts/FontCache.java b/src/java/org/apache/fop/fonts/FontCache.java index 0b71e6294..29470a2a9 100644 --- a/src/java/org/apache/fop/fonts/FontCache.java +++ b/src/java/org/apache/fop/fonts/FontCache.java @@ -77,7 +77,7 @@ public final class FontCache implements Serializable { * mapping of font url -> file modified date (for all fonts that have failed * to load) */ - private Map failedFontMap/* */= null; + private Map failedFontMap/* */ = null; /** * Default constructor diff --git a/src/java/org/apache/fop/pdf/PDFText.java b/src/java/org/apache/fop/pdf/PDFText.java index d7d80fbe0..9566f60da 100644 --- a/src/java/org/apache/fop/pdf/PDFText.java +++ b/src/java/org/apache/fop/pdf/PDFText.java @@ -323,7 +323,7 @@ public class PDFText extends PDFObject { /** * Converts a text to PDF's "string" data type. Unsupported characters get converted to '?' * characters (similar to what the Java "US-ASCII" encoding does). - * @see {@link #toPDFString(CharSequence, char)} + * @see #toPDFString(CharSequence, char) * @param text the text to convert * @return the converted string */ diff --git a/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java b/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java index ee840b4aa..1b7e21bd3 100644 --- a/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java +++ b/src/java/org/apache/fop/render/rtf/TextAttributesConverter.java @@ -442,7 +442,7 @@ final class TextAttributesConverter { /** * Reads background-color from bl and writes it to rtfAttr. * - * @param bph the CommonBorderPaddingBackground from which the properties are read + * @param bpb the CommonBorderPaddingBackground from which the properties are read * @param rtfAttr the RtfAttributes object the attributes are written to */ private static void attrBackgroundColor(CommonBorderPaddingBackground bpb, diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFootnote.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFootnote.java index ed4aa64a9..1a71ed670 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFootnote.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfFootnote.java @@ -41,8 +41,7 @@ public class RtfFootnote extends RtfContainer * Create an RTF list item as a child of given container with default attributes. * @param parent a container * @param w a writer - * @return a text run - * @throw IOException if not caught + * @throws IOException if not caught */ RtfFootnote(RtfContainer parent, Writer w) throws IOException { super(parent, w); diff --git a/src/java/org/apache/fop/tools/anttasks/FileCompare.java b/src/java/org/apache/fop/tools/anttasks/FileCompare.java index 44ed56f24..83b0aa896 100644 --- a/src/java/org/apache/fop/tools/anttasks/FileCompare.java +++ b/src/java/org/apache/fop/tools/anttasks/FileCompare.java @@ -119,8 +119,8 @@ public class FileCompare { /** * Does a file size compare of two files - * @param file1 the first file to compare - * @param file2 the second file to compare + * @param oldFile the first file to compare + * @param newFile the second file to compare * @return true if files are same length, false otherwise */ private static boolean compareFileSize(File oldFile, File newFile) { -- 2.39.5