Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbvosburgh2009-12-19 05:59:41 +0000
committerbvosburgh2009-12-19 05:59:41 +0000
commit40d0f8e56c2e5dad270f3cb5821fc0d0af1f9509 (patch)
tree9ba9e5a35129e2928279307ba7cf4f1489cf7810 /jpa/plugins/org.eclipse.jpt.utility/src/org/eclipse/jpt/utility/internal/iterators/EmptyIterator.java
parent8465584c62d5e81bf9a255e38a0e028055a44f5d (diff)
downloadwebtools.dali-40d0f8e56c2e5dad270f3cb5821fc0d0af1f9509.tar.gz
webtools.dali-40d0f8e56c2e5dad270f3cb5821fc0d0af1f9509.tar.xz
webtools.dali-40d0f8e56c2e5dad270f3cb5821fc0d0af1f9509.zip
ListIterable work
Diffstat (limited to 'jpa/plugins/org.eclipse.jpt.utility/src/org/eclipse/jpt/utility/internal/iterators/EmptyIterator.java')
-rw-r--r--jpa/plugins/org.eclipse.jpt.utility/src/org/eclipse/jpt/utility/internal/iterators/EmptyIterator.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.utility/src/org/eclipse/jpt/utility/internal/iterators/EmptyIterator.java b/jpa/plugins/org.eclipse.jpt.utility/src/org/eclipse/jpt/utility/internal/iterators/EmptyIterator.java
index 5d20c03cbf..892299aa2d 100644
--- a/jpa/plugins/org.eclipse.jpt.utility/src/org/eclipse/jpt/utility/internal/iterators/EmptyIterator.java
+++ b/jpa/plugins/org.eclipse.jpt.utility/src/org/eclipse/jpt/utility/internal/iterators/EmptyIterator.java
@@ -17,6 +17,8 @@ import org.eclipse.jpt.utility.internal.StringTools;
* An <code>EmptyIterator</code> is just that.
*
* @param <E> the type of elements (not) returned by the iterator
+ *
+ * @see org.eclipse.jpt.utility.internal.iterables.EmptyIterable
*/
public final class EmptyIterator<E>
implements Iterator<E>
@@ -58,4 +60,10 @@ public final class EmptyIterator<E>
return StringTools.buildToStringFor(this);
}
+ private static final long serialVersionUID = 1L;
+ private Object readResolve() {
+ // replace this object with the singleton
+ return INSTANCE;
+ }
+
}

Back to the top