historical typo fixed: getDependences: usages 3

This commit is contained in:
Gregory.Shrago
2018-07-10 20:51:16 +03:00
parent 75c6a14ab6
commit f68c17c48a
3 changed files with 5 additions and 5 deletions

View File

@@ -110,7 +110,7 @@ public class RngElementDescriptor implements XmlElementDescriptor {
@Override
public CachedValueProvider.Result<XmlElementDescriptor> compute(RngElementDescriptor p) {
final XmlElementDescriptor descriptor = p.findElementDescriptor(childTag);
return CachedValueProvider.Result.create(descriptor, RngElementDescriptor.this.getDependencies(), childTag);
return CachedValueProvider.Result.create(descriptor, p.getDependencies(), childTag);
}
});
return value == NULL ? null : value;
@@ -123,7 +123,7 @@ public class RngElementDescriptor implements XmlElementDescriptor {
@Override
public CachedValueProvider.Result<XmlAttributeDescriptor[]> compute(RngElementDescriptor p) {
final XmlAttributeDescriptor[] value = p.collectAttributeDescriptors(context);
return CachedValueProvider.Result.create(value, RngElementDescriptor.this.getDependencies(), context);
return CachedValueProvider.Result.create(value, p.getDependencies(), context);
}
});
} else {

View File

@@ -278,8 +278,8 @@ public class RngNsDescriptor implements XmlNSDescriptorEx, Validator {
CachedValuesManager.getManager(myElement.getProject()).createCachedValue(() -> {
final XmlElementDescriptor descriptor = findRootDescriptorInner(qName);
return descriptor != null
? new CachedValueProvider.Result<>(descriptor, this.getDependencies())
: new CachedValueProvider.Result<>(null, this.getDependencies());
? new CachedValueProvider.Result<>(descriptor, descriptor.getDependencies())
: new CachedValueProvider.Result<>(null, getDependencies());
}, false);
myDescriptorsMap.put(qName, cachedValue);
}

View File

@@ -389,7 +389,7 @@ public class XmlNSDescriptorImpl implements XmlNSDescriptorEx,Validator<XmlDocum
return new CachedValueProvider.Result<>(null, PsiModificationTracker.MODIFICATION_COUNT);
}
final XmlElementDescriptor xmlElementDescriptor = createElementDescriptor(tag);
return new CachedValueProvider.Result<>(xmlElementDescriptor, this.getDependencies());
return new CachedValueProvider.Result<>(xmlElementDescriptor, xmlElementDescriptor.getDependencies());
}, false);
myDescriptorsMap.put(pair, cachedValue);
return cachedValue.getValue();