don't lose attachments on stub-ast mismatch reporting

This commit is contained in:
peter
2013-12-02 19:26:32 +01:00
parent 393d831d3a
commit 5324fb463b
2 changed files with 3 additions and 3 deletions
@@ -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()));
}
}