提交 b0325f14 编写于 作者: S Stepan Koltsov

remove useless field in JavaNamespaceDescriptor

上级 ee24554e
......@@ -907,8 +907,7 @@ public class JavaDescriptorResolver {
(NamespaceDescriptorParent) resolveParentDescriptor(psiPackage),
Collections.<AnnotationDescriptor>emptyList(), // TODO
name == null ? JAVA_ROOT : name,
fqName,
true
fqName
);
trace.record(BindingContext.NAMESPACE, psiPackage, namespaceDescriptor);
......@@ -997,8 +996,7 @@ public class JavaDescriptorResolver {
resolveNamespace(fqName.parent(), DescriptorSearchRule.INCLUDE_KOTLIN),
Collections.<AnnotationDescriptor>emptyList(), // TODO
psiClass.getName(),
fqName,
false
fqName
);
ResolverNamespaceData scopeData = createNamespaceResolverScopeData(fqName, ns);
......
......@@ -32,14 +32,11 @@ import java.util.List;
public class JavaNamespaceDescriptor extends AbstractNamespaceDescriptorImpl {
private JetScope memberScope;
private final FqName qualifiedName;
/** Namespace of class with static methods */
private final boolean namespace;
public JavaNamespaceDescriptor(NamespaceDescriptorParent containingDeclaration, List<AnnotationDescriptor> annotations,
@NotNull String name, @NotNull FqName qualifiedName, boolean namespace) {
@NotNull String name, @NotNull FqName qualifiedName) {
super(containingDeclaration, annotations, name);
this.qualifiedName = qualifiedName;
this.namespace = namespace;
}
public void setMemberScope(@NotNull JetScope memberScope) {
......@@ -55,8 +52,4 @@ public class JavaNamespaceDescriptor extends AbstractNamespaceDescriptorImpl {
public FqName getQualifiedName() {
return qualifiedName;
}
public boolean isNamespace() {
return namespace;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册