pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1654429 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDNameTreeNode.java
Date Fri, 23 Jan 2015 22:59:48 GMT
Author: tilman
Date: Fri Jan 23 22:59:48 2015
New Revision: 1654429

URL: http://svn.apache.org/r1654429
Log:
PDFBOX-2576: set field final; loop must have braces

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDNameTreeNode.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDNameTreeNode.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDNameTreeNode.java?rev=1654429&r1=1654428&r2=1654429&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDNameTreeNode.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDNameTreeNode.java
Fri Jan 23 22:59:48 2015
@@ -41,7 +41,7 @@ import org.apache.pdfbox.cos.COSString;
 public class PDNameTreeNode implements COSObjectable
 {
     private static final Log LOG = LogFactory.getLog(PDNameTreeNode.class);
-    private COSDictionary node;
+    private final COSDictionary node;
     private Class<? extends COSObjectable> valueType = null;
     private PDNameTreeNode parent = null;
 
@@ -152,7 +152,9 @@ public class PDNameTreeNode implements C
         if (kids != null && kids.size() > 0)
         {
             for (PDNameTreeNode kidsNode : kids)
+            {
                 kidsNode.setParent(this);
+            }
             node.setItem( COSName.KIDS, COSArrayList.converterToCOSArray( kids ) );
             // root nodes with kids don't have Names
             if (isRootNode())



Mime
View raw message