From c17e7bea1928df9ec8b2b6d24d4e0de100d3686d Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Tue, 15 Jul 2014 19:35:49 +0000 Subject: [PATCH] ... And actually fix resulting warnings git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1610825 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fonts/apps/TTFReader.java | 3 ++- .../apache/fop/render/pdf/extensions/PDFExtensionHandler.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/fop/fonts/apps/TTFReader.java b/src/java/org/apache/fop/fonts/apps/TTFReader.java index 40e11b570..12fc638b4 100644 --- a/src/java/org/apache/fop/fonts/apps/TTFReader.java +++ b/src/java/org/apache/fop/fonts/apps/TTFReader.java @@ -205,7 +205,8 @@ public class TTFReader extends AbstractFontReader { * @return The TTF as an object, null if the font is incompatible. * @throws IOException In case of an I/O problem */ - public TTFFile loadTTF(String fileName, String fontName, boolean useKerning, boolean useAdvanced) throws IOException { + public TTFFile loadTTF(String fileName, String fontName, boolean useKerning, boolean useAdvanced) + throws IOException { TTFFile ttfFile = new TTFFile(useKerning, useAdvanced); log.info("Reading " + fileName + "..."); InputStream stream = new FileInputStream(fileName); diff --git a/src/java/org/apache/fop/render/pdf/extensions/PDFExtensionHandler.java b/src/java/org/apache/fop/render/pdf/extensions/PDFExtensionHandler.java index b9a0285ad..fb0647fd5 100644 --- a/src/java/org/apache/fop/render/pdf/extensions/PDFExtensionHandler.java +++ b/src/java/org/apache/fop/render/pdf/extensions/PDFExtensionHandler.java @@ -168,7 +168,8 @@ public class PDFExtensionHandler extends DefaultHandler implements ContentHandle } else if (dictionary.getDictionaryType() != PDFDictionaryType.Dictionary) { this.returnedObject = new PDFDictionaryAttachment(dictionary); } else { - throw new SAXException(new IllegalStateException("generic dictionary not permitted at outer level")); + throw new SAXException( + new IllegalStateException("generic dictionary not permitted at outer level")); } } else { throw new SAXException(new IllegalStateException("collections stack is empty or not a dictionary")); -- 2.39.5