aboutsummaryrefslogtreecommitdiff
path: root/libjava/javax/swing/tree
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/javax/swing/tree')
-rw-r--r--libjava/javax/swing/tree/DefaultMutableTreeNode.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/libjava/javax/swing/tree/DefaultMutableTreeNode.java b/libjava/javax/swing/tree/DefaultMutableTreeNode.java
index 020e741..b6dd1d0 100644
--- a/libjava/javax/swing/tree/DefaultMutableTreeNode.java
+++ b/libjava/javax/swing/tree/DefaultMutableTreeNode.java
@@ -997,17 +997,17 @@ public class DefaultMutableTreeNode
public int getLeafCount() {
// Variables
- Enumeration enum;
+ Enumeration e;
int count;
TreeNode current;
// Get Enumeration of all descendants
- enum = depthFirstEnumeration();
+ e = depthFirstEnumeration();
// Process Nodes
count = 0;
- while (enum.hasMoreElements() == true) {
- current = (TreeNode) enum.nextElement();
+ while (e.hasMoreElements() == true) {
+ current = (TreeNode) e.nextElement();
if (current.isLeaf() == true) {
count++;
} // if