Minor cleanup in Java model: fix warnings, remove unused
This commit is contained in:
-12
@@ -22,9 +22,6 @@ import org.jetbrains.kotlin.load.java.structure.JavaAnnotation;
|
||||
import org.jetbrains.kotlin.load.java.structure.JavaAnnotationOwner;
|
||||
import org.jetbrains.kotlin.name.FqName;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
||||
public interface ExternalAnnotationResolver {
|
||||
ExternalAnnotationResolver EMPTY = new ExternalAnnotationResolver() {
|
||||
@Nullable
|
||||
@@ -32,17 +29,8 @@ public interface ExternalAnnotationResolver {
|
||||
public JavaAnnotation findExternalAnnotation(@NotNull JavaAnnotationOwner owner, @NotNull FqName fqName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Collection<JavaAnnotation> findExternalAnnotations(@NotNull JavaAnnotationOwner owner) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
};
|
||||
|
||||
@Nullable
|
||||
JavaAnnotation findExternalAnnotation(@NotNull JavaAnnotationOwner owner, @NotNull FqName fqName);
|
||||
|
||||
@NotNull
|
||||
Collection<JavaAnnotation> findExternalAnnotations(@NotNull JavaAnnotationOwner owner);
|
||||
}
|
||||
|
||||
-4
@@ -19,14 +19,10 @@ package org.jetbrains.kotlin.load.java.structure;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.kotlin.name.ClassId;
|
||||
import org.jetbrains.kotlin.name.Name;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
public interface JavaAnnotation extends JavaElement {
|
||||
@Nullable
|
||||
JavaAnnotationArgument findArgument(@NotNull Name name);
|
||||
|
||||
@NotNull
|
||||
Collection<JavaAnnotationArgument> getArguments();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user