Commit c5afc192 by Bryce McKinlay Committed by Bryce McKinlay

* java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.

From-SVN: r38185
parent 0aa9764b
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
* configure.in: Remove check for -fuse-divide-subroutine. * configure.in: Remove check for -fuse-divide-subroutine.
* configure: Rebuilt. * configure: Rebuilt.
* java/util/Hashtable.java (Enumerator.nextElement): Initialize `e'.
2000-12-11 Bryce McKinlay <bryce@albatross.co.nz> 2000-12-11 Bryce McKinlay <bryce@albatross.co.nz>
......
...@@ -64,8 +64,8 @@ import java.io.ObjectOutputStream; ...@@ -64,8 +64,8 @@ import java.io.ObjectOutputStream;
* @author Jon Zeppieri * @author Jon Zeppieri
* @author Warren Levy * @author Warren Levy
* @author Bryce McKinlay * @author Bryce McKinlay
* @version $Revision: 1.6 $ * @version $Revision: 1.7 $
* @modified $Id: Hashtable.java,v 1.6 2000/08/19 18:19:42 green Exp $ * @modified $Id: Hashtable.java,v 1.7 2000/12/11 03:47:47 bryce Exp $
*/ */
public class Hashtable extends Dictionary public class Hashtable extends Dictionary
implements Map, Cloneable, Serializable implements Map, Cloneable, Serializable
...@@ -724,8 +724,8 @@ public class Hashtable extends Dictionary ...@@ -724,8 +724,8 @@ public class Hashtable extends Dictionary
* as per the Javasoft spec. * as per the Javasoft spec.
* *
* @author Jon Zeppieri * @author Jon Zeppieri
* @version $Revision: 1.8 $ * @version $Revision: 1.7 $
* @modified $Id: HashMap.java,v 1.8 2000/10/26 10:19:00 bryce Exp $ * @modified $Id: Hashtable.java,v 1.7 2000/12/11 03:47:47 bryce Exp $
*/ */
class HashIterator implements Iterator class HashIterator implements Iterator
{ {
...@@ -829,8 +829,8 @@ public class Hashtable extends Dictionary ...@@ -829,8 +829,8 @@ public class Hashtable extends Dictionary
* hashtable during enumeration causes indeterminate results. Don't do it! * hashtable during enumeration causes indeterminate results. Don't do it!
* *
* @author Jon Zeppieri * @author Jon Zeppieri
* @version $Revision: 1.6 $ * @version $Revision: 1.7 $
* @modified $Id: Hashtable.java,v 1.6 2000/08/19 18:19:42 green Exp $ */ * @modified $Id: Hashtable.java,v 1.7 2000/12/11 03:47:47 bryce Exp $ */
class Enumerator implements Enumeration class Enumerator implements Enumeration
{ {
static final int KEYS = 0; static final int KEYS = 0;
...@@ -862,7 +862,7 @@ public class Hashtable extends Dictionary ...@@ -862,7 +862,7 @@ public class Hashtable extends Dictionary
if (count >= size) if (count >= size)
throw new NoSuchElementException(); throw new NoSuchElementException();
count++; count++;
HashMap.Entry e; HashMap.Entry e = null;
if (last != null) if (last != null)
e = last.next; e = last.next;
......
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