Commit 74c2dbf7 by Michael Koch Committed by Michael Koch

BeanInfoEmbryo.java, [...]: Rename enum to e because enum is a keyword in Java 1.5.

2004-05-30  Michael Koch  <konqueror@gmx.de>

	* gnu/java/beans/BeanInfoEmbryo.java,
	java/awt/im/InputContext.java,
	javax/swing/tree/DefaultMutableTreeNode.java:
	Rename enum to e because enum is a keyword in Java 1.5.

From-SVN: r82447
parent 27d14326
2004-05-30 Michael Koch <konqueror@gmx.de>
* gnu/java/beans/BeanInfoEmbryo.java,
java/awt/im/InputContext.java,
javax/swing/tree/DefaultMutableTreeNode.java:
Rename enum to e because enum is a keyword in Java 1.5.
2004-05-30 Michael Koch <konqueror@gmx.de>
* gnu/java/math/MPN.java,
java/awt/geom/Arc2D.java:
Fixed javadocs all over.
......
......@@ -85,9 +85,9 @@ public class BeanInfoEmbryo {
PropertyDescriptor[] Aproperties = new PropertyDescriptor[properties.size()];
int i = 0;
Enumeration enum = properties.elements();
while(enum.hasMoreElements()) {
Aproperties[i] = (PropertyDescriptor)enum.nextElement();
Enumeration e = properties.elements();
while (e.hasMoreElements()) {
Aproperties[i] = (PropertyDescriptor) e.nextElement();
if(defaultPropertyName != null && Aproperties[i].getName().equals(defaultPropertyName)) {
defaultProperty = i;
}
......@@ -96,9 +96,9 @@ public class BeanInfoEmbryo {
EventSetDescriptor[] Aevents = new EventSetDescriptor[events.size()];
i = 0;
enum = events.elements();
while(enum.hasMoreElements()) {
Aevents[i] = (EventSetDescriptor)enum.nextElement();
e = events.elements();
while (e.hasMoreElements()) {
Aevents[i] = (EventSetDescriptor) e.nextElement();
if(defaultEventName != null && Aevents[i].getName().equals(defaultEventName)) {
defaultEvent = i;
}
......
......@@ -86,20 +86,20 @@ public class InputContext
private static final ArrayList descriptors = new ArrayList();
static
{
Enumeration enum;
Enumeration e;
try
{
enum = ClassLoader.getSystemResources
e = ClassLoader.getSystemResources
("META_INF/services/java.awt.im.spi.InputMethodDescriptor");
}
catch (IOException ex)
{
// XXX Should we do something else?
enum = EmptyEnumeration.getInstance();
e = EmptyEnumeration.getInstance();
}
while (enum.hasMoreElements())
while (e.hasMoreElements())
{
URL url = (URL) enum.nextElement();
URL url = (URL) e.nextElement();
BufferedReader in;
String line;
try
......@@ -125,7 +125,7 @@ public class InputContext
}
line = in.readLine().trim();
}
catch (IOException e)
catch (IOException ex)
{
continue outer;
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment