]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
... And actually fix resulting warnings
authorVincent Hennebert <vhennebert@apache.org>
Tue, 15 Jul 2014 19:35:49 +0000 (19:35 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Tue, 15 Jul 2014 19:35:49 +0000 (19:35 +0000)
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
src/java/org/apache/fop/render/pdf/extensions/PDFExtensionHandler.java

index 40e11b570c9e80060fba7bd35ffaf603f9fb536a..12fc638b40f60f9456479440a012a47f4ad1d5bb 100644 (file)
@@ -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);
index b9a0285ad770a2748e3400113242f177f4a98f9b..fb0647fd58376fcaf61166dfa5f068cdcf278612 100644 (file)
@@ -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"));