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:
parent
27d14326c7
commit
74c2dbf7a1
4 changed files with 23 additions and 16 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue