Minor. Fix compilation(KT-9898 Impossible implement kotlin interface in java)

This commit is contained in:
Stanislav Erokhin
2015-11-05 02:19:59 +03:00
parent b3e69a5f5d
commit c73d091c52
2 changed files with 6 additions and 3 deletions
@@ -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();
}