From b291ba880135fa1479f99a195cffe4cb6325b36a Mon Sep 17 00:00:00 2001 From: Alexey Pegov Date: Tue, 8 Sep 2009 22:18:20 +0400 Subject: [PATCH] fix tests? --- .../src/com/intellij/openapi/roots/impl/ModuleLibraryTable.java | 3 +-- .../com/intellij/openapi/roots/impl/libraries/LibraryTableBase.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/openapi/roots/impl/ModuleLibraryTable.java b/platform/lang-impl/src/com/intellij/openapi/roots/impl/ModuleLibraryTable.java index 4c439a4c8b..82e33a6088 100644 --- a/platform/lang-impl/src/com/intellij/openapi/roots/impl/ModuleLibraryTable.java +++ b/platform/lang-impl/src/com/intellij/openapi/roots/impl/ModuleLibraryTable.java @@ -10,7 +10,6 @@ import com.intellij.openapi.roots.libraries.Library; import com.intellij.openapi.roots.libraries.LibraryTable; import com.intellij.openapi.roots.libraries.LibraryTablePresentation; import com.intellij.openapi.util.Condition; -import com.intellij.openapi.util.Disposer; import com.intellij.openapi.vfs.pointers.VirtualFilePointerManager; import com.intellij.util.containers.ContainerUtil; import com.intellij.util.containers.ConvertingIterator; @@ -80,7 +79,7 @@ public class ModuleLibraryTable implements LibraryTable, LibraryTable.Modifiable if (libraryOrderEntry.isModuleLevel()) { if (library.equals(libraryOrderEntry.getLibrary())) { myRootModel.removeOrderEntry(orderEntry); - Disposer.dispose(library); + //Disposer.dispose(library); return; } } diff --git a/platform/lang-impl/src/com/intellij/openapi/roots/impl/libraries/LibraryTableBase.java b/platform/lang-impl/src/com/intellij/openapi/roots/impl/libraries/LibraryTableBase.java index a0d0384f41..31a18d08c1 100644 --- a/platform/lang-impl/src/com/intellij/openapi/roots/impl/libraries/LibraryTableBase.java +++ b/platform/lang-impl/src/com/intellij/openapi/roots/impl/libraries/LibraryTableBase.java @@ -231,7 +231,7 @@ public abstract class LibraryTableBase implements PersistentStateComponent