+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,
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;
}
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;
}
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
}
line = in.readLine().trim();
}
- catch (IOException e)
+ catch (IOException ex)
{
continue outer;
}
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