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
|
@NotNull
|
||||||
@Override
|
@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);
|
return properties.invoke(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -175,7 +175,8 @@ public class ErrorUtils {
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@Override
|
@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;
|
return ERROR_PROPERTY_GROUP;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -236,7 +237,8 @@ public class ErrorUtils {
|
|||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
@Override
|
@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();
|
throw new IllegalStateException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user