diff options
author | Sergey Prigogin | 2008-03-29 16:48:34 +0000 |
---|---|---|
committer | Sergey Prigogin | 2008-03-29 16:48:34 +0000 |
commit | 301640c194a5b520482d5f262ad1ccd185ad981b (patch) | |
tree | 457bcc157159e09bfc687a5d8cf6761403c71cdb | |
parent | 0a8de132253354b640a5aa810aa82ed083a6b440 (diff) | |
download | org.eclipse.cdt-301640c194a5b520482d5f262ad1ccd185ad981b.tar.gz org.eclipse.cdt-301640c194a5b520482d5f262ad1ccd185ad981b.tar.xz org.eclipse.cdt-301640c194a5b520482d5f262ad1ccd185ad981b.zip |
Code formatting.
-rw-r--r-- | core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/EmptyIterator.java | 18 |
1 files changed, 5 insertions, 13 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 40b1874fdeb..de98a170b27 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 @@ -13,10 +13,7 @@ package org.eclipse.cdt.internal.core.parser; import java.util.Iterator; import java.util.NoSuchElementException; - -public final class EmptyIterator<T> implements Iterator<T> -{ - +public final class EmptyIterator<T> implements Iterator<T> { public static final EmptyIterator<?> EMPTY_ITERATOR = new EmptyIterator<Object>(); @SuppressWarnings("unchecked") @@ -24,32 +21,27 @@ public final class EmptyIterator<T> implements Iterator<T> return (EmptyIterator<T>) EMPTY_ITERATOR; } - private EmptyIterator() - { + private EmptyIterator() { } /* (non-Javadoc) * @see java.util.Iterator#hasNext() */ - public final boolean hasNext() - { + public final boolean hasNext() { return false; } /* (non-Javadoc) * @see java.util.Iterator#next() */ - public final T next() - { + public final T next() { throw new NoSuchElementException(); } /* (non-Javadoc) * @see java.util.Iterator#remove() */ - public final void remove() - { + public final void remove() { throw new UnsupportedOperationException(); } - } |