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
This commit is contained in:
Michael Koch 2004-05-30 13:35:15 +00:00 committed by Michael Koch
parent 27d14326c7
commit 74c2dbf7a1
4 changed files with 23 additions and 16 deletions

View file

@ -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;
}