From: Michael Koch Date: Mon, 31 May 2004 09:23:05 +0000 (+0000) Subject: SequenceInputStream.java: Rename enum to e because enum is a keyword in Java 1.5. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58128b9da11df305d8e631bcbbaa6aad2ad970d6;p=gcc.git SequenceInputStream.java: Rename enum to e because enum is a keyword in Java 1.5. 2004-05-31 Michael Koch * java/io/SequenceInputStream.java: Rename enum to e because enum is a keyword in Java 1.5. From-SVN: r82479 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 7901df26ece..7b63645a81d 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-05-31 Michael Koch + + * java/io/SequenceInputStream.java: + Rename enum to e because enum is a keyword in Java 1.5. + 2004-05-31 Michael Koch * gnu/java/rmi/rmic/CompilerProcess.java: diff --git a/libjava/java/io/SequenceInputStream.java b/libjava/java/io/SequenceInputStream.java index adc9b86b8ce..e7b2f494c2a 100644 --- a/libjava/java/io/SequenceInputStream.java +++ b/libjava/java/io/SequenceInputStream.java @@ -71,8 +71,8 @@ public class SequenceInputStream extends InputStream /** Secondary input stream; not used if constructed w/ enumeration. */ private InputStream in2; - /** The enum handle; not used if constructed w/ 2 explicit input streams. */ - private Enumeration enum; + /** The enumeration handle; not used if constructed w/ 2 explicit input streams. */ + private Enumeration e; /** * This method creates a new SequenceInputStream that obtains @@ -84,8 +84,8 @@ public class SequenceInputStream extends InputStream */ public SequenceInputStream(Enumeration e) { - enum = e; - in = (InputStream) enum.nextElement(); + this.e = e; + in = (InputStream) e.nextElement(); in2 = null; } @@ -204,10 +204,10 @@ public class SequenceInputStream extends InputStream { InputStream nextIn = null; - if (enum != null) + if (e != null) { - if (enum.hasMoreElements()) - nextIn = (InputStream) enum.nextElement(); + if (e.hasMoreElements()) + nextIn = (InputStream) e.nextElement(); } else if (in2 != null)