summaryrefslogtreecommitdiffstats
path: root/libjava/java/util/Vector.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/util/Vector.java')
-rw-r--r--libjava/java/util/Vector.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/java/util/Vector.java b/libjava/java/util/Vector.java
index 737c5b498f6..d98068082ad 100644
--- a/libjava/java/util/Vector.java
+++ b/libjava/java/util/Vector.java
@@ -38,7 +38,7 @@ class VectorEnumeration implements Enumeration
public Object nextElement()
{
- if (!hasMoreElements())
+ if (! (enumIndex < enumVec.size()))
throw new NoSuchElementException();
return enumVec.elementData[enumIndex++];
OpenPOWER on IntegriCloud