logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1405197 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/Node.java
Date Fri, 02 Nov 2012 22:34:42 GMT
Author: ggregory
Date: Fri Nov  2 22:34:42 2012
New Revision: 1405197

URL: http://svn.apache.org/viewvc?rev=1405197&view=rev
Log:
Make some ivars final.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/Node.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/Node.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/Node.java?rev=1405197&r1=1405196&r2=1405197&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/Node.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/Node.java
Fri Nov  2 22:34:42 2012
@@ -28,12 +28,12 @@ import java.util.Map;
  */
 public class Node {
 
-    private Node parent;
-    private String name;
+    private final Node parent;
+    private final String name;
     private String value;
-    private PluginType type;
-    private Map<String, String> attributes = new HashMap<String, String>();
-    private List<Node> children = new ArrayList<Node>();
+    private final PluginType type;
+    private final Map<String, String> attributes = new HashMap<String, String>();
+    private final List<Node> children = new ArrayList<Node>();
     private Object object;
 
 
@@ -52,6 +52,9 @@ public class Node {
     }
 
     public Node() {
+        this.parent = null;
+        this.name = null;
+        this.type = null;
     }
 
     public Map<String, String> getAttributes() {



Mime
View raw message