mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Code formatting.
This commit is contained in:
parent
0a8de13225
commit
301640c194
1 changed files with 5 additions and 13 deletions
|
@ -13,10 +13,7 @@ package org.eclipse.cdt.internal.core.parser;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.NoSuchElementException;
|
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>();
|
public static final EmptyIterator<?> EMPTY_ITERATOR = new EmptyIterator<Object>();
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
@ -24,32 +21,27 @@ public final class EmptyIterator<T> implements Iterator<T>
|
||||||
return (EmptyIterator<T>) EMPTY_ITERATOR;
|
return (EmptyIterator<T>) EMPTY_ITERATOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
private EmptyIterator()
|
private EmptyIterator() {
|
||||||
{
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see java.util.Iterator#hasNext()
|
* @see java.util.Iterator#hasNext()
|
||||||
*/
|
*/
|
||||||
public final boolean hasNext()
|
public final boolean hasNext() {
|
||||||
{
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see java.util.Iterator#next()
|
* @see java.util.Iterator#next()
|
||||||
*/
|
*/
|
||||||
public final T next()
|
public final T next() {
|
||||||
{
|
|
||||||
throw new NoSuchElementException();
|
throw new NoSuchElementException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see java.util.Iterator#remove()
|
* @see java.util.Iterator#remove()
|
||||||
*/
|
*/
|
||||||
public final void remove()
|
public final void remove() {
|
||||||
{
|
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue