Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2008-03-27 14:31:34 +0000
committerMarkus Schorn2008-03-27 14:31:34 +0000
commitc10395201b57fc692485902fd56fad028d6254ae (patch)
tree0b5121c30aad2c4a66d2a6d340bbbba67b2fbfea /core/org.eclipse.cdt.core/parser
parent5001cf3e336c7bac013ebe2a920e1f545b917820 (diff)
downloadorg.eclipse.cdt-c10395201b57fc692485902fd56fad028d6254ae.tar.gz
org.eclipse.cdt-c10395201b57fc692485902fd56fad028d6254ae.tar.xz
org.eclipse.cdt-c10395201b57fc692485902fd56fad028d6254ae.zip
Fixes warnings
Diffstat (limited to 'core/org.eclipse.cdt.core/parser')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/EmptyIterator.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/EmptyIterator.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/EmptyIterator.java
index e29f4a042f0..40b1874fdeb 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/EmptyIterator.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/EmptyIterator.java
@@ -19,6 +19,11 @@ public final class EmptyIterator<T> implements Iterator<T>
public static final EmptyIterator<?> EMPTY_ITERATOR = new EmptyIterator<Object>();
+ @SuppressWarnings("unchecked")
+ public static <T> EmptyIterator<T> empty() {
+ return (EmptyIterator<T>) EMPTY_ITERATOR;
+ }
+
private EmptyIterator()
{
}

Back to the top