mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't lose attachments on stub-ast mismatch reporting
This commit is contained in:
@@ -116,7 +116,7 @@ public abstract class StubProcessingHelperBase {
|
||||
/***
|
||||
* Returns a message to log when stub tree and index do not match
|
||||
*/
|
||||
protected abstract String stubTreeAndIndexDoNotMatch(StubTree stubTree,
|
||||
protected abstract Object stubTreeAndIndexDoNotMatch(StubTree stubTree,
|
||||
PsiFileWithStubSupport psiFile,
|
||||
List<StubElement<?>> plained,
|
||||
VirtualFile virtualFile,
|
||||
|
||||
@@ -35,7 +35,7 @@ public class StubProcessingHelper extends StubProcessingHelperBase {
|
||||
|
||||
|
||||
@Override
|
||||
protected String stubTreeAndIndexDoNotMatch(StubTree stubTree,
|
||||
protected Object stubTreeAndIndexDoNotMatch(StubTree stubTree,
|
||||
PsiFileWithStubSupport psiFile,
|
||||
List<StubElement<?>> plained,
|
||||
VirtualFile virtualFile,
|
||||
@@ -51,6 +51,6 @@ public class StubProcessingHelper extends StubProcessingHelperBase {
|
||||
new Attachment("stubTree.txt", ((PsiFileStubImpl)stubTree.getRoot()).printTree()),
|
||||
new Attachment("stubTreeFromIndex.txt", stubTreeFromIndex == null
|
||||
? "null"
|
||||
: ((PsiFileStubImpl)stubTreeFromIndex.getRoot()).printTree())).toString();
|
||||
: ((PsiFileStubImpl)stubTreeFromIndex.getRoot()).printTree()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user