1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-02 22:55:26 +02:00

Proper logging when RefactoringASTCache is not disposed.

This commit is contained in:
Sergey Prigogin 2011-04-10 23:43:54 +00:00
parent 985b3ca34e
commit 2e121463ed

View file

@ -28,6 +28,7 @@ import org.eclipse.cdt.core.model.CoreModel;
import org.eclipse.cdt.core.model.ICProject;
import org.eclipse.cdt.core.model.ILanguage;
import org.eclipse.cdt.core.model.ITranslationUnit;
import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.internal.core.model.ASTCache.ASTRunnable;
import org.eclipse.cdt.internal.corext.util.CModelUtil;
@ -143,7 +144,8 @@ public class RefactoringASTCache implements IDisposable {
@Override
protected void finalize() throws Throwable {
Assert.isTrue(fDisposed, "RefactoringASTCache was not disposed"); //$NON-NLS-1$
if (!fDisposed)
CUIPlugin.logError("RefactoringASTCache was not disposed"); //$NON-NLS-1$
super.finalize();
}
}