提交 7c0b8876 编写于 作者: S Stepan Koltsov

fix more errors of incomplete classpath

after this commit project without JDK configured is not all red
上级 a7aeba4e
......@@ -893,7 +893,7 @@ public class JavaDescriptorResolver implements DependencyClassByQualifiedNameRes
if (resolved != null && resolved.getQualifiedName().equals(JvmStdlibNames.JET_OBJECT.getFqName().getFqName())) {
continue;
}
if (annotation && resolved.getQualifiedName().equals("java.lang.annotation.Annotation")) {
if (resolved != null && annotation && resolved.getQualifiedName().equals("java.lang.annotation.Annotation")) {
continue;
}
......
......@@ -441,6 +441,10 @@ public class OverrideResolver {
}
private void checkOverridesForParameters(CallableMemberDescriptor declared) {
if (ErrorUtils.isError(declared)) {
return;
}
boolean fakeOverride = declared.getKind() == CallableMemberDescriptor.Kind.FAKE_OVERRIDE;
if (!fakeOverride) {
// No check if the function is not marked as 'override'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册