diff --git a/platform/core-api/src/com/intellij/util/EmptyQuery.java b/platform/core-api/src/com/intellij/util/EmptyQuery.java index 44d714962fe0..465100505450 100644 --- a/platform/core-api/src/com/intellij/util/EmptyQuery.java +++ b/platform/core-api/src/com/intellij/util/EmptyQuery.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. @@ -41,7 +41,7 @@ public class EmptyQuery implements Query { } @Override - public boolean forEach(@NotNull final Processor consumer) { + public boolean forEach(@NotNull Processor consumer) { return true; } @@ -53,7 +53,7 @@ public class EmptyQuery implements Query { @NotNull @Override - public R[] toArray(@NotNull final R[] a) { + public R[] toArray(@NotNull R[] a) { return findAll().toArray(a); } @@ -63,7 +63,7 @@ public class EmptyQuery implements Query { } public static Query getEmptyQuery() { - //noinspection unchecked - return (Query) EMPTY_QUERY_INSTANCE; + @SuppressWarnings("unchecked") Query instance = (Query)EMPTY_QUERY_INSTANCE; + return instance; } }