Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/event/EventIteratorImpl.java')
-rw-r--r--org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/event/EventIteratorImpl.java32
1 files changed, 16 insertions, 16 deletions
diff --git a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/event/EventIteratorImpl.java b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/event/EventIteratorImpl.java
index da3a6b2c0..9c01beb08 100644
--- a/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/event/EventIteratorImpl.java
+++ b/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/event/EventIteratorImpl.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2005 IBM Corporation and others.
+ * Copyright (c) 2000, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -10,34 +10,32 @@
*******************************************************************************/
package org.eclipse.jdi.internal.event;
-
import java.util.ListIterator;
import com.sun.jdi.event.Event;
import com.sun.jdi.event.EventIterator;
/**
- * this class implements the corresponding interfaces
- * declared by the JDI specification. See the com.sun.jdi package
- * for more information.
- *
+ * this class implements the corresponding interfaces declared by the JDI
+ * specification. See the com.sun.jdi package for more information.
+ *
*/
public class EventIteratorImpl implements EventIterator {
/** List iterator implementation of iterator. */
- private ListIterator fIterator;
-
+ private ListIterator<Event> fIterator;
+
/**
* Creates new EventIteratorImpl.
*/
- public EventIteratorImpl(ListIterator iter) {
+ public EventIteratorImpl(ListIterator<Event> iter) {
fIterator = iter;
}
/**
* @return Returns next Event from EventSet.
- */
+ */
public Event nextEvent() {
- return (Event)fIterator.next();
+ return fIterator.next();
}
/**
@@ -46,19 +44,21 @@ public class EventIteratorImpl implements EventIterator {
public boolean hasNext() {
return fIterator.hasNext();
}
-
+
/**
* @see java.util.Iterator#next()
*/
- public Object next() {
+ public Event next() {
return fIterator.next();
}
-
+
/**
* @see java.util.Iterator#remove()
- * @exception UnsupportedOperationException always thrown since EventSets are unmodifiable.
+ * @exception UnsupportedOperationException
+ * always thrown since EventSets are unmodifiable.
*/
public void remove() {
- throw new UnsupportedOperationException(EventMessages.EventIteratorImpl_EventSets_are_unmodifiable_1);
+ throw new UnsupportedOperationException(
+ EventMessages.EventIteratorImpl_EventSets_are_unmodifiable_1);
}
}

Back to the top