mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -186,7 +186,7 @@ public abstract class JavaStubPsiElement<T extends StubElement> extends StubBase
|
||||
return cloneImpl(treeElementClone);
|
||||
}
|
||||
|
||||
protected StubBasedPsiElementBase cloneImpl(CompositeElement treeElementClone) {
|
||||
protected StubBasedPsiElementBase cloneImpl(@NotNull CompositeElement treeElementClone) {
|
||||
StubBasedPsiElementBase clone = (StubBasedPsiElementBase)super.clone();
|
||||
clone.setNode(treeElementClone);
|
||||
treeElementClone.setPsi(clone);
|
||||
|
||||
@@ -80,7 +80,7 @@ public class StubUpdatingIndex extends CustomImplementationFileBasedIndexExtensi
|
||||
return elementType instanceof IStubFileElementType &&
|
||||
(((IStubFileElementType)elementType).shouldBuildStubFor(file) || IndexingStamp.isFileIndexed(file, INDEX_ID, IndexInfrastructure.getIndexCreationStamp(INDEX_ID)));
|
||||
}
|
||||
else if (fileType.isBinary()) {
|
||||
if (fileType.isBinary()) {
|
||||
final BinaryFileStubBuilder builder = BinaryFileStubBuilders.INSTANCE.forFileType(fileType);
|
||||
return builder != null && builder.acceptsFile(file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user