JavaArrayAnnotationArgument.getElements() returns List

This commit is contained in:
Alexander Udalov
2013-10-15 20:21:00 +04:00
parent 5b916ea108
commit 1fdb86f733
4 changed files with 7 additions and 8 deletions
@@ -23,7 +23,7 @@ import org.jetbrains.jet.lang.resolve.java.structure.JavaAnnotationArgument;
import org.jetbrains.jet.lang.resolve.java.structure.JavaArrayAnnotationArgument;
import org.jetbrains.jet.lang.resolve.name.Name;
import java.util.Collection;
import java.util.List;
import static org.jetbrains.jet.lang.resolve.java.structure.impl.JavaElementCollectionFromPsiArrayUtil.namelessAnnotationArguments;
@@ -35,7 +35,7 @@ public class JavaArrayAnnotationArgumentImpl extends JavaAnnotationArgumentImpl<
@Override
@NotNull
public Collection<JavaAnnotationArgument> getElements() {
public List<JavaAnnotationArgument> getElements() {
return namelessAnnotationArguments(getPsi().getInitializers());
}
}
@@ -190,8 +190,8 @@ public class JavaElementCollectionFromPsiArrayUtil {
}
@NotNull
public static Collection<JavaAnnotationArgument> namelessAnnotationArguments(@NotNull PsiAnnotationMemberValue[] memberValues) {
return (Collection) convert(memberValues, Factories.NAMELESS_ANNOTATION_ARGUMENTS);
public static List<JavaAnnotationArgument> namelessAnnotationArguments(@NotNull PsiAnnotationMemberValue[] memberValues) {
return (List) convert(memberValues, Factories.NAMELESS_ANNOTATION_ARGUMENTS);
}
@NotNull