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() {