Minor. Fix compilation(KT-9898 Impossible implement kotlin interface in java)
This commit is contained in:
+2
-1
@@ -201,7 +201,8 @@ public class EnumEntrySyntheticClassDescriptor extends ClassDescriptorBase {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Collection<PropertyDescriptor> getContributedVariables(@NotNull Name name, @NotNull LookupLocation location) {
|
||||
@SuppressWarnings({"unchecked"}) // KT-9898 Impossible implement kotlin interface in java
|
||||
public Collection getContributedVariables(@NotNull Name name, @NotNull LookupLocation location) {
|
||||
return properties.invoke(name);
|
||||
}
|
||||
|
||||
|
||||
@@ -175,7 +175,8 @@ public class ErrorUtils {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Set<PropertyDescriptor> getContributedVariables(@NotNull Name name, @NotNull LookupLocation location) {
|
||||
@SuppressWarnings({"unchecked"}) // KT-9898 Impossible implement kotlin interface in java
|
||||
public Set getContributedVariables(@NotNull Name name, @NotNull LookupLocation location) {
|
||||
return ERROR_PROPERTY_GROUP;
|
||||
}
|
||||
|
||||
@@ -236,7 +237,8 @@ public class ErrorUtils {
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Collection<PropertyDescriptor> getContributedVariables(@NotNull Name name, @NotNull LookupLocation location) {
|
||||
@SuppressWarnings({"unchecked"}) // KT-9898 Impossible implement kotlin interface from java
|
||||
public Collection getContributedVariables(@NotNull Name name, @NotNull LookupLocation location) {
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user