diff --git a/platform/util/src/com/intellij/util/containers/EmptyIterator.java b/platform/util-rt/src/com/intellij/util/containers/EmptyIterator.java similarity index 90% rename from platform/util/src/com/intellij/util/containers/EmptyIterator.java rename to platform/util-rt/src/com/intellij/util/containers/EmptyIterator.java index 4969ee63d974..5bf03786eb75 100644 --- a/platform/util/src/com/intellij/util/containers/EmptyIterator.java +++ b/platform/util-rt/src/com/intellij/util/containers/EmptyIterator.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2012 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -21,16 +21,20 @@ import java.util.NoSuchElementException; public class EmptyIterator implements Iterator { private static final EmptyIterator INSTANCE = new EmptyIterator(); public static EmptyIterator getInstance() { + //noinspection unchecked return INSTANCE; } + @Override public boolean hasNext() { return false; } + @Override public T next() { throw new NoSuchElementException(); } + @Override public void remove() { throw new IllegalStateException(); }