From: Simon Steiner Date: Thu, 21 Aug 2014 14:52:27 +0000 (+0000) Subject: Fix checkstyle X-Git-Tag: fop-2_0~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2e06f0dd3914d9d09e95ced4ae27090b1b42d26b;p=xmlgraphics-fop.git Fix checkstyle git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1619419 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/render/pdf/PDFStructureTreeBuilder.java b/src/java/org/apache/fop/render/pdf/PDFStructureTreeBuilder.java index bd4be2a61..c6c41e9e2 100644 --- a/src/java/org/apache/fop/render/pdf/PDFStructureTreeBuilder.java +++ b/src/java/org/apache/fop/render/pdf/PDFStructureTreeBuilder.java @@ -360,8 +360,8 @@ class PDFStructureTreeBuilder implements StructureTreeEventHandler { public StructureTreeElement startNode(String name, Attributes attributes, StructureTreeElement parent) { if (!isPDFA1Safe(name)) { return null; - } - assert parent == null || parent instanceof PDFStructElem; + } + assert parent == null || parent instanceof PDFStructElem; PDFStructElem parentElem = parent == null ? ancestors.getFirst() : (PDFStructElem) parent; PDFStructElem structElem = createStructureElement(name, parentElem, attributes, pdfFactory, eventBroadcaster);