remove E-specific nullable annos

This commit is contained in:
Gregory.Shrago
2016-10-14 05:35:11 +03:00
parent 5f5cc77ddb
commit 4d6b650afe
@@ -113,7 +113,6 @@ public abstract class JBIterator<E> implements Iterator<E> {
return myNext != STOP;
}
@Nullable
@Override
public final E next() {
advance();
@@ -136,7 +135,6 @@ public abstract class JBIterator<E> implements Iterator<E> {
/**
* Returns the current element if any; otherwise throws exception.
*/
@Nullable
public final E current() {
if (myCurrent == NONE) throw new NoSuchElementException();
return (E)myCurrent;