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> 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, * gnu/java/math/MPN.java,
java/awt/geom/Arc2D.java: java/awt/geom/Arc2D.java:
Fixed javadocs all over. Fixed javadocs all over.
......
...@@ -85,9 +85,9 @@ public class BeanInfoEmbryo { ...@@ -85,9 +85,9 @@ public class BeanInfoEmbryo {
PropertyDescriptor[] Aproperties = new PropertyDescriptor[properties.size()]; PropertyDescriptor[] Aproperties = new PropertyDescriptor[properties.size()];
int i = 0; int i = 0;
Enumeration enum = properties.elements(); Enumeration e = properties.elements();
while(enum.hasMoreElements()) { while (e.hasMoreElements()) {
Aproperties[i] = (PropertyDescriptor)enum.nextElement(); Aproperties[i] = (PropertyDescriptor) e.nextElement();
if(defaultPropertyName != null && Aproperties[i].getName().equals(defaultPropertyName)) { if(defaultPropertyName != null && Aproperties[i].getName().equals(defaultPropertyName)) {
defaultProperty = i; defaultProperty = i;
} }
...@@ -96,9 +96,9 @@ public class BeanInfoEmbryo { ...@@ -96,9 +96,9 @@ public class BeanInfoEmbryo {
EventSetDescriptor[] Aevents = new EventSetDescriptor[events.size()]; EventSetDescriptor[] Aevents = new EventSetDescriptor[events.size()];
i = 0; i = 0;
enum = events.elements(); e = events.elements();
while(enum.hasMoreElements()) { while (e.hasMoreElements()) {
Aevents[i] = (EventSetDescriptor)enum.nextElement(); Aevents[i] = (EventSetDescriptor) e.nextElement();
if(defaultEventName != null && Aevents[i].getName().equals(defaultEventName)) { if(defaultEventName != null && Aevents[i].getName().equals(defaultEventName)) {
defaultEvent = i; defaultEvent = i;
} }
......
...@@ -86,20 +86,20 @@ public class InputContext ...@@ -86,20 +86,20 @@ public class InputContext
private static final ArrayList descriptors = new ArrayList(); private static final ArrayList descriptors = new ArrayList();
static static
{ {
Enumeration enum; Enumeration e;
try try
{ {
enum = ClassLoader.getSystemResources e = ClassLoader.getSystemResources
("META_INF/services/java.awt.im.spi.InputMethodDescriptor"); ("META_INF/services/java.awt.im.spi.InputMethodDescriptor");
} }
catch (IOException ex) catch (IOException ex)
{ {
// XXX Should we do something else? // 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; BufferedReader in;
String line; String line;
try try
...@@ -125,7 +125,7 @@ public class InputContext ...@@ -125,7 +125,7 @@ public class InputContext
} }
line = in.readLine().trim(); line = in.readLine().trim();
} }
catch (IOException e) catch (IOException ex)
{ {
continue outer; continue outer;
} }
......
...@@ -997,17 +997,17 @@ public class DefaultMutableTreeNode ...@@ -997,17 +997,17 @@ public class DefaultMutableTreeNode
public int getLeafCount() { public int getLeafCount() {
// Variables // Variables
Enumeration enum; Enumeration e;
int count; int count;
TreeNode current; TreeNode current;
// Get Enumeration of all descendants // Get Enumeration of all descendants
enum = depthFirstEnumeration(); e = depthFirstEnumeration();
// Process Nodes // Process Nodes
count = 0; count = 0;
while (enum.hasMoreElements() == true) { while (e.hasMoreElements() == true) {
current = (TreeNode) enum.nextElement(); current = (TreeNode) e.nextElement();
if (current.isLeaf() == true) { if (current.isLeaf() == true) {
count++; count++;
} // if } // 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