logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattsic...@apache.org
Subject svn commit: r1586428 - /logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/Node.java
Date Thu, 10 Apr 2014 19:05:09 GMT
Author: mattsicker
Date: Thu Apr 10 19:05:09 2014
New Revision: 1586428

URL: http://svn.apache.org/r1586428
Log:
Use isEmpty.

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

Modified: logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/Node.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/Node.java?rev=1586428&r1=1586427&r2=1586428&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/Node.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-core/src/main/java/org/apache/logging/log4j/core/config/Node.java
Thu Apr 10 19:05:09 2014
@@ -38,7 +38,7 @@ public class Node {
 
 
     /**
-     * Creates a new instance of <code>Node</code> and initializes it
+     * Creates a new instance of {@code Node} and initializes it
      * with a name and the corresponding XML element.
      *
      * @param parent the node's parent.
@@ -78,7 +78,7 @@ public class Node {
     }
 
     public boolean hasChildren() {
-        return children.size() > 0;
+        return !children.isEmpty();
     }
 
     public String getValue() {



Mime
View raw message