From 694eba636c013c4273ea41d1b2155af6988d940f Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Mon, 1 Oct 2012 14:39:42 +0400 Subject: [PATCH] moved to rt --- .../src/com/intellij/util/containers/EmptyIterator.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename platform/{util => util-rt}/src/com/intellij/util/containers/EmptyIterator.java (90%) 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(); }