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:
parent
985b3ca34e
commit
2e121463ed
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue