From c1e22180a8b1fc0b9824d73df0203e082ffc59b1 Mon Sep 17 00:00:00 2001 From: "Denis.Zhdanov" Date: Fri, 13 Apr 2012 16:56:00 +0400 Subject: [PATCH] EA-31437 - assert: DocumentFoldingInfo.writeExternal Debug info is added --- .../codeInsight/folding/impl/DocumentFoldingInfo.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/folding/impl/DocumentFoldingInfo.java b/platform/lang-impl/src/com/intellij/codeInsight/folding/impl/DocumentFoldingInfo.java index f008f56140ea..1d04e771076f 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/folding/impl/DocumentFoldingInfo.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/folding/impl/DocumentFoldingInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2012 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -182,9 +182,9 @@ public class DocumentFoldingInfo implements JDOMExternalizable, CodeFoldingState if (!psiElement.equals(restoredElement)){ StringBuilder trace = new StringBuilder(); PsiElement restoredAgain = FoldingPolicy.restoreBySignature(psiElement.getContainingFile(), signature, trace); - LOG.error("element: " + psiElement +"; restoredElement: "+ restoredElement+"; signature: '" + signature - + "'; file: " + psiElement.getContainingFile() + "; restored again: " + restoredAgain + - "; restore produces same results: " + (restoredAgain == restoredElement) + "; trace:\n" + trace); + LOG.error("element: " + psiElement +"(" + psiElement.getText() + "); restoredElement: " + restoredElement + + "; signature: '" + signature + "'; file: " + psiElement.getContainingFile() + "; restored again: " + + restoredAgain + "; restore produces same results: " + (restoredAgain == restoredElement) + "; trace:\n" + trace); } Element e = new Element(ELEMENT_TAG);