Browse Source

... And actually fix resulting warnings


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1610825 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-2_0
Vincent Hennebert 9 years ago
parent
commit
c17e7bea19

+ 2
- 1
src/java/org/apache/fop/fonts/apps/TTFReader.java View 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);

+ 2
- 1
src/java/org/apache/fop/render/pdf/extensions/PDFExtensionHandler.java View 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"));

Loading…
Cancel
Save