project model: restrict access to root model implementation classes
authornik <Nikolay.Chashnikov@jetbrains.com>
Thu, 23 May 2019 15:34:41 +0000 (18:34 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Fri, 24 May 2019 08:36:44 +0000 (11:36 +0300)
Classes not used from other packages are marked as package-private, classes used from other packages of the platform and from plugins are marked as internal. This is needed to allow us provide an alternative implementation of the project model interfaces.

GitOrigin-RevId: e972ffad48073542c8927bb215d8ccdac45579a6

26 files changed:
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ClonableContentEntry.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ClonableContentFolder.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ClonableOrderEntry.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ContentEntryImpl.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ContentFolderBaseImpl.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ExcludeFolderImpl.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/InheritedJdkOrderEntryImpl.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ModuleJdkOrderEntryImpl.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ModuleLibraryOrderEntryImpl.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ModuleLibraryTable.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ModuleOrderEntryImpl.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ModuleSourceOrderEntryImpl.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ModulesOrderEnumerator.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/OrderEntryBaseImpl.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/OrderEntryFactory.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/RootConfigurationAccessor.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/RootModelBase.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/RootModelComponentBase.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/RootModelImpl.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/RootProviderBaseImpl.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/SourceFolderImpl.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/TestModulePropertiesImpl.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/libraries/ApplicationLibraryTable.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/libraries/LibraryTableBase.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/libraries/LibraryTableImplUtil.java
platform/projectModel-impl/src/com/intellij/openapi/roots/impl/libraries/LibraryTablesRegistrarImpl.java

index 15bddc29fb0f4db8567011efb3ba9dd748a1d64e..4980d04b00f248a3a4542883fb9c3ad4e8f26e1e 100644 (file)
@@ -22,7 +22,7 @@ import org.jetbrains.annotations.NotNull;
 /**
  *  @author dsl
  */
-public interface ClonableContentEntry {
+interface ClonableContentEntry {
   @NotNull
   ContentEntry cloneEntry(@NotNull RootModelImpl rootModel);
 }
index f9aadabfd381d69692b701219d812a8bf78a7379..270e9a6ed2e2284ea04875aa64123da2c1c57d5c 100644 (file)
@@ -23,7 +23,7 @@ import org.jetbrains.annotations.NotNull;
 /**
  *  @author dsl
  */
-public interface ClonableContentFolder {
+interface ClonableContentFolder {
   @NotNull
   ContentFolder cloneFolder(@NotNull ContentEntry contentEntry);
 }
index 94909d63253838e455ef66654c1357eb9d87f90f..6b1e46976c1ff3aa57eeaf0ab7bb8ed92bf50e63 100644 (file)
@@ -18,12 +18,14 @@ package com.intellij.openapi.roots.impl;
 
 import com.intellij.openapi.roots.OrderEntry;
 import com.intellij.openapi.vfs.pointers.VirtualFilePointerManager;
+import org.jetbrains.annotations.ApiStatus;
 import org.jetbrains.annotations.NotNull;
 
 /**
  *  @author dsl
  */
 @FunctionalInterface
+@ApiStatus.Internal
 public interface ClonableOrderEntry {
   @NotNull
   OrderEntry cloneEntry(@NotNull RootModelImpl rootModel, @NotNull ProjectRootManagerImpl projectRootManager, @NotNull VirtualFilePointerManager filePointerManager);
index e791d3d51c40d56cd12ffbea55e10dc1d877decb..30de7aeda735c66db4d0a50736e228612ed2c7cd 100644 (file)
@@ -19,6 +19,7 @@ import com.intellij.util.ArrayUtil;
 import com.intellij.util.SmartList;
 import com.intellij.util.containers.ContainerUtil;
 import org.jdom.Element;
+import org.jetbrains.annotations.ApiStatus;
 import org.jetbrains.annotations.NonNls;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.jps.model.JpsElement;
@@ -33,6 +34,7 @@ import java.util.*;
 /**
  *  @author dsl
  */
+@ApiStatus.Internal
 public class ContentEntryImpl extends RootModelComponentBase implements ContentEntry, ClonableContentEntry, Comparable<ContentEntryImpl> {
   private static final Logger LOG = Logger.getInstance("#com.intellij.openapi.roots.impl.SimpleContentEntryImpl");
   @NotNull private final VirtualFilePointer myRoot;
index 2a53c3f1942a642460d2098d23b3a4ecdfc15003..7485f240a1dcd01f10a2e172d457284cb8f739ea 100644 (file)
@@ -24,6 +24,7 @@ import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.openapi.vfs.pointers.VirtualFilePointer;
 import com.intellij.openapi.vfs.pointers.VirtualFilePointerManager;
 import org.jdom.Element;
+import org.jetbrains.annotations.ApiStatus;
 import org.jetbrains.annotations.NonNls;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
@@ -32,6 +33,7 @@ import org.jetbrains.jps.model.serialization.module.JpsModuleRootModelSerializer
 /**
  *  @author dsl
  */
+@ApiStatus.Internal
 public abstract class ContentFolderBaseImpl extends RootModelComponentBase implements ContentFolder, Comparable<ContentFolderBaseImpl> {
   @NonNls public static final String URL_ATTRIBUTE = JpsModuleRootModelSerializer.URL_ATTRIBUTE;
 
index 0c19b2d1fcecacedb4e0a538981de0651b771698..a4002e907dcb0fe5e45c6aefee79eecaaa86cd97 100644 (file)
@@ -30,8 +30,8 @@ import org.jetbrains.jps.model.serialization.module.JpsModuleRootModelSerializer
 /**
  *  @author dsl
  */
-public class ExcludeFolderImpl extends ContentFolderBaseImpl implements ClonableContentFolder,
-                                                                        UserDefinedExcludeFolder {
+class ExcludeFolderImpl extends ContentFolderBaseImpl implements ClonableContentFolder,
+                                                                 UserDefinedExcludeFolder {
   private static final Logger LOG = Logger.getInstance("#com.intellij.openapi.roots.impl.SimpleExcludeFolderImpl");
   @NonNls public static final String ELEMENT_NAME = JpsModuleRootModelSerializer.EXCLUDE_FOLDER_TAG;
 
index 36a2a50261452718ebf3a92249f8bb962d77ffc3..9cc490657e093f101b946ccbd8dd590237167a6e 100644 (file)
@@ -32,7 +32,7 @@ import org.jetbrains.jps.model.serialization.module.JpsModuleRootModelSerializer
 /**
  * @author dsl
  */
-public class InheritedJdkOrderEntryImpl extends LibraryOrderEntryBaseImpl implements InheritedJdkOrderEntry, ClonableOrderEntry, WritableOrderEntry {
+class InheritedJdkOrderEntryImpl extends LibraryOrderEntryBaseImpl implements InheritedJdkOrderEntry, ClonableOrderEntry, WritableOrderEntry {
   @NonNls public static final String ENTRY_TYPE = JpsModuleRootModelSerializer.INHERITED_JDK_TYPE;
   private final MyProjectJdkListener myListener = new MyProjectJdkListener();
 
index 1470192d88978ce84cf72d9da0e10ed491f24432..246ad9df7fc29388d6987cf332609e30e4b8e69c 100644 (file)
@@ -35,10 +35,10 @@ import org.jetbrains.jps.model.serialization.module.JpsModuleRootModelSerializer
 /**
  * @author dsl
  */
-public class ModuleJdkOrderEntryImpl extends LibraryOrderEntryBaseImpl implements WritableOrderEntry,
-                                                                                  ClonableOrderEntry,
-                                                                                  ModuleJdkOrderEntry,
-                                                                                  ProjectJdkTable.Listener {
+class ModuleJdkOrderEntryImpl extends LibraryOrderEntryBaseImpl implements WritableOrderEntry,
+                                                                           ClonableOrderEntry,
+                                                                           ModuleJdkOrderEntry,
+                                                                           ProjectJdkTable.Listener {
   @NonNls public static final String ENTRY_TYPE = JpsModuleRootModelSerializer.JDK_TYPE;
   @NonNls private static final String JDK_NAME_ATTR = JpsModuleRootModelSerializer.JDK_NAME_ATTRIBUTE;
   @NonNls private static final String JDK_TYPE_ATTR = JpsModuleRootModelSerializer.JDK_TYPE_ATTRIBUTE;
index 2be786a351abd24a415623251080aa05f6f23c38..1b45c705fa7a6e570bb937791ffa1a52e40ce4af 100644 (file)
@@ -30,15 +30,18 @@ import com.intellij.openapi.util.WriteExternalException;
 import com.intellij.openapi.vfs.pointers.VirtualFilePointerManager;
 import com.intellij.util.PathUtil;
 import org.jdom.Element;
+import org.jetbrains.annotations.ApiStatus;
 import org.jetbrains.annotations.NonNls;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.jps.model.serialization.java.JpsJavaModelSerializerExtension;
 import org.jetbrains.jps.model.serialization.module.JpsModuleRootModelSerializer;
 
 /**
- * Library entry for module ("in-place") libraries
- *  @author dsl
+ * Library entry for module ("in-place") libraries.
+ * This class isn't supposed to be used from plugins. Use {@link OrderEntryUtil#isModuleLibraryOrderEntry(OrderEntry)} to check whether an
+ * entry corresponds to a module-level library.
  */
+@ApiStatus.Internal
 public class ModuleLibraryOrderEntryImpl extends LibraryOrderEntryBaseImpl implements LibraryOrderEntry, ClonableOrderEntry, WritableOrderEntry {
   private static final Logger LOG = Logger.getInstance("#com.intellij.openapi.roots.impl.LibraryOrderEntryImpl");
   @NotNull
index 5262fb8eb7b794249dc73ff3319e812336cbef6d..9a2fbdac0f1094d84d903a9c0c4c150479e23a7c 100644 (file)
@@ -32,6 +32,7 @@ import com.intellij.util.containers.ContainerUtil;
 import com.intellij.util.containers.ConvertingIterator;
 import com.intellij.util.containers.Convertor;
 import com.intellij.util.containers.FilteringIterator;
+import org.jetbrains.annotations.ApiStatus;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
 
@@ -41,6 +42,7 @@ import java.util.Iterator;
 /**
  *  @author dsl
  */
+@ApiStatus.Internal
 public class ModuleLibraryTable implements LibraryTable, LibraryTable.ModifiableModel {
   private static final ModuleLibraryOrderEntryCondition MODULE_LIBRARY_ORDER_ENTRY_FILTER = new ModuleLibraryOrderEntryCondition();
   private static final OrderEntryToLibraryConvertor ORDER_ENTRY_TO_LIBRARY_CONVERTOR = new OrderEntryToLibraryConvertor();
index 6dfe24a6cbfe3371652da87551dbc7caa8cba3e4..488a90e275fe673528a4e909868bb2102e10d2d3 100644 (file)
@@ -26,6 +26,7 @@ import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.openapi.vfs.pointers.VirtualFilePointerManager;
 import com.intellij.util.ArrayUtil;
 import org.jdom.Element;
+import org.jetbrains.annotations.ApiStatus;
 import org.jetbrains.annotations.NonNls;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
@@ -35,6 +36,7 @@ import org.jetbrains.jps.model.serialization.module.JpsModuleRootModelSerializer
 /**
  * @author dsl
  */
+@ApiStatus.Internal
 public class ModuleOrderEntryImpl extends OrderEntryBaseImpl implements ModuleOrderEntry, WritableOrderEntry, ClonableOrderEntry {
   @NonNls public static final String ENTRY_TYPE = JpsModuleRootModelSerializer.MODULE_TYPE;
   @NonNls public static final String MODULE_NAME_ATTR = JpsModuleRootModelSerializer.MODULE_NAME_ATTRIBUTE;
index 25af597ec83f23b7415f6ab6c4599f42b46a75c7..14bb50a2c5e6e0ff6b5400c84215d700942c8784 100644 (file)
@@ -35,7 +35,7 @@ import java.util.List;
 /**
  *  @author dsl
  */
-public class ModuleSourceOrderEntryImpl extends OrderEntryBaseImpl implements ModuleSourceOrderEntry, WritableOrderEntry, ClonableOrderEntry {
+class ModuleSourceOrderEntryImpl extends OrderEntryBaseImpl implements ModuleSourceOrderEntry, WritableOrderEntry, ClonableOrderEntry {
   @NonNls static final String ENTRY_TYPE = JpsModuleRootModelSerializer.SOURCE_FOLDER_TYPE;
   @NonNls private static final String ATTRIBUTE_FOR_TESTS = "forTests";
 
index 5dc5fde64aa4524ceb1d341fa4c09813b7dad317..d4673820cf6a14555eeed9d131d426845003021c 100644 (file)
@@ -22,6 +22,7 @@ import com.intellij.openapi.roots.OrderEnumerationHandler;
 import com.intellij.util.PairProcessor;
 import com.intellij.util.Processor;
 import gnu.trove.THashSet;
+import org.jetbrains.annotations.ApiStatus;
 import org.jetbrains.annotations.NotNull;
 
 import java.util.Collection;
@@ -30,6 +31,7 @@ import java.util.List;
 /**
  * @author nik
  */
+@ApiStatus.Internal
 public class ModulesOrderEnumerator extends OrderEnumeratorBase {
   private final Collection<? extends Module> myModules;
 
index 83f0f2dd2e8b75b0d49c39457eb46eb65e66efd8..0e1ed5f8bbb1c2bb6eddd45d97a9cc80474b08e1 100644 (file)
@@ -20,7 +20,7 @@ import com.intellij.openapi.diagnostic.Logger;
 import com.intellij.openapi.roots.OrderEntry;
 import org.jetbrains.annotations.NotNull;
 
-public abstract class OrderEntryBaseImpl extends RootModelComponentBase implements OrderEntry {
+abstract class OrderEntryBaseImpl extends RootModelComponentBase implements OrderEntry {
   private static final Logger LOG = Logger.getInstance("#com.intellij.openapi.roots.impl.OrderEntryVeryBaseImpl");
 
   private int myIndex;
index f2f679dc0945f4d200971dab0551362fe3699e80..263684e72af436155f2a425e04a222456f7f0dc5 100644 (file)
@@ -27,7 +27,7 @@ import org.jetbrains.jps.model.serialization.module.JpsModuleRootModelSerializer
 /**
  *  @author dsl
  */
-public class OrderEntryFactory {
+class OrderEntryFactory {
   private static final Logger LOG = Logger.getInstance("#com.intellij.openapi.roots.impl.OrderEntryFactory");
   @NonNls public static final String ORDER_ENTRY_ELEMENT_NAME = JpsModuleRootModelSerializer.ORDER_ENTRY_TAG;
   @NonNls public static final String ORDER_ENTRY_TYPE_ATTR = JpsModuleRootModelSerializer.TYPE_ATTRIBUTE;
index 3800dc91a02859c50057be3ed7a3b1299f61321e..cd95542b72b9f985c31cb28bacb0245b53ecd02d 100644 (file)
@@ -21,11 +21,13 @@ import com.intellij.openapi.project.Project;
 import com.intellij.openapi.projectRoots.Sdk;
 import com.intellij.openapi.roots.ProjectRootManager;
 import com.intellij.openapi.roots.libraries.Library;
+import org.jetbrains.annotations.ApiStatus;
 import org.jetbrains.annotations.Nullable;
 
 /**
  * @author yole
  */
+@ApiStatus.Internal
 public class RootConfigurationAccessor {
   @Nullable
   public Library getLibrary(final Library library, final String libraryName, final String libraryLevel) {
index 1c4fe705c3d283e78870f2287149c0cf36aeac95..7d9d1f46924a1ce8d71f26dea2bccae1ab1e2b09 100644 (file)
@@ -10,6 +10,7 @@ import com.intellij.openapi.vfs.VfsUtilCore;
 import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.util.ArrayUtil;
 import com.intellij.util.SmartList;
+import org.jetbrains.annotations.ApiStatus;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.jps.model.module.JpsModuleSourceRootType;
 
@@ -18,6 +19,7 @@ import java.util.*;
 /**
  * @author nik
  */
+@ApiStatus.Internal
 public abstract class RootModelBase implements ModuleRootModel {
   @Override
   @NotNull
index 3a31e049c981e35501a64a22c155a33584f7d7d6..74b700025e2c1f055bc467c1e29cd0281f997a8e 100644 (file)
@@ -23,7 +23,7 @@ import org.jetbrains.annotations.NotNull;
 /**
  *  @author dsl
  */
-public abstract class RootModelComponentBase implements Disposable {
+abstract class RootModelComponentBase implements Disposable {
   @NotNull
   private final RootModelImpl myRootModel;
   private boolean myDisposed;
index 30e5fe1f136fba1cb2aa92304459f23039700922..82ba8540e3261ef0e1c0ac9ba53ec038602e108a 100644 (file)
@@ -26,6 +26,7 @@ import com.intellij.util.ObjectUtils;
 import com.intellij.util.containers.ContainerUtil;
 import gnu.trove.THashMap;
 import org.jdom.Element;
+import org.jetbrains.annotations.ApiStatus;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
 
@@ -34,6 +35,7 @@ import java.util.*;
 /**
  * @author dsl
  */
+@ApiStatus.Internal
 public class RootModelImpl extends RootModelBase implements ModifiableRootModel {
   private static final Logger LOG = Logger.getInstance("#com.intellij.openapi.roots.impl.RootModelImpl");
 
index 340953e602731cb30c33fee1d56ec2ab69ee80d0..b3ac6e82768392f6fd6fb039035d228f1b4ec30b 100644 (file)
@@ -19,11 +19,13 @@ package com.intellij.openapi.roots.impl;
 import com.intellij.openapi.Disposable;
 import com.intellij.openapi.roots.RootProvider;
 import com.intellij.util.EventDispatcher;
+import org.jetbrains.annotations.ApiStatus;
 import org.jetbrains.annotations.NotNull;
 
 /**
  *  @author dsl
  */
+@ApiStatus.Internal
 public abstract class RootProviderBaseImpl implements RootProvider {
   protected final EventDispatcher<RootSetChangedListener> myDispatcher = EventDispatcher.create(RootSetChangedListener.class);
   @Override
index 7cdb8d241999d815a363996fb528404a36864272..3142452fcbcbafdce7bba63576536ac4c66171e1 100644 (file)
@@ -8,6 +8,7 @@ import com.intellij.openapi.roots.SourceFolder;
 import com.intellij.openapi.util.InvalidDataException;
 import com.intellij.openapi.vfs.VirtualFile;
 import org.jdom.Element;
+import org.jetbrains.annotations.ApiStatus;
 import org.jetbrains.annotations.NonNls;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
@@ -22,6 +23,7 @@ import org.jetbrains.jps.model.serialization.module.JpsModuleRootModelSerializer
 /**
  *  @author dsl
  */
+@ApiStatus.Internal
 public class SourceFolderImpl extends ContentFolderBaseImpl implements SourceFolder, ClonableContentFolder {
   private final JpsModuleSourceRoot myJpsElement;
   @NonNls public static final String ELEMENT_NAME = JpsModuleRootModelSerializer.SOURCE_FOLDER_TAG;
index 50b05722234246c6f4383ada1e7aa715b1113de9..2ef7b3f50157a364ddeee4ad1b21ea935244fa4f 100644 (file)
@@ -18,13 +18,13 @@ import org.jetbrains.annotations.Nullable;
  * @author nik
  */
 @State(name = "TestModuleProperties")
-public class TestModulePropertiesImpl extends TestModuleProperties implements PersistentStateComponent<TestModulePropertiesImpl.TestModulePropertiesState>,
-                                                                              ProjectModelElement {
+class TestModulePropertiesImpl extends TestModuleProperties implements PersistentStateComponent<TestModulePropertiesImpl.TestModulePropertiesState>,
+                                                                       ProjectModelElement {
   private final ModulePointerManager myModulePointerManager;
   private ModulePointer myProductionModulePointer;
   private final Module myModule;
 
-  public TestModulePropertiesImpl(@NotNull Module module, @NotNull ModulePointerManager modulePointerManager) {
+  TestModulePropertiesImpl(@NotNull Module module, @NotNull ModulePointerManager modulePointerManager) {
     myModule = module;
     myModulePointerManager = modulePointerManager;
   }
index 20948f59da1a13f1b2226e0812cb93e396b5c2b6..1a09f7799eb6538f339f54d0ab3e14af06338e9d 100644 (file)
@@ -20,11 +20,13 @@ import com.intellij.openapi.components.ServiceManager;
 import com.intellij.openapi.project.ProjectBundle;
 import com.intellij.openapi.roots.libraries.LibraryTablePresentation;
 import com.intellij.openapi.roots.libraries.LibraryTablesRegistrar;
+import org.jetbrains.annotations.ApiStatus;
 import org.jetbrains.annotations.NotNull;
 
 /**
- *  @author dsl
+ * This class is for internal use, in order to get instance of the application-level library table, use {@link LibraryTablesRegistrar#getLibraryTable()}
  */
+@ApiStatus.Internal
 public class ApplicationLibraryTable extends LibraryTableBase {
   private static final LibraryTablePresentation GLOBAL_LIBRARY_TABLE_PRESENTATION = new LibraryTablePresentation() {
     @NotNull
index ff0f57a1d4761822bd1b22e88e1c4e3369f509c0..e308a00ce34067a5f71d22a4459bb6a50aed9361 100644 (file)
@@ -20,12 +20,14 @@ import com.intellij.openapi.util.text.StringUtil;
 import com.intellij.util.EventDispatcher;
 import com.intellij.util.containers.ContainerUtil;
 import org.jdom.Element;
+import org.jetbrains.annotations.ApiStatus;
 import org.jetbrains.annotations.NonNls;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
 
 import java.util.*;
 
+@ApiStatus.Internal
 public abstract class LibraryTableBase implements PersistentStateComponent<Element>, LibraryTable, Disposable {
   private static final Logger LOG = Logger.getInstance("#com.intellij.openapi.roots.impl.libraries.LibraryTableBase");
   private final EventDispatcher<Listener> myDispatcher = EventDispatcher.create(Listener.class);
index 2e6f77bb5d518d1d796f4cf3cee4ce19bf9137de..6f2c66529b4edbcf7f7de3b08939631f07c9a260 100644 (file)
@@ -27,6 +27,7 @@ import com.intellij.openapi.roots.libraries.LibraryTable;
 import com.intellij.openapi.roots.libraries.PersistentLibraryKind;
 import com.intellij.openapi.util.InvalidDataException;
 import org.jdom.Element;
+import org.jetbrains.annotations.ApiStatus;
 import org.jetbrains.annotations.NonNls;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
@@ -36,6 +37,7 @@ import java.util.List;
 /**
  *  @author dsl
  */
+@ApiStatus.Internal
 public class LibraryTableImplUtil {
   @NonNls public static final String MODULE_LEVEL = "module";
 
index 38c7bf0a025c693daa6f28a0c591951a02b6cd58..417fb12d46ab110087b7e5fb787359e9fc26f5c3 100644 (file)
@@ -27,7 +27,7 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 
-public class LibraryTablesRegistrarImpl extends LibraryTablesRegistrar implements Disposable {
+class LibraryTablesRegistrarImpl extends LibraryTablesRegistrar implements Disposable {
   private static final Map<String, LibraryTable> myLibraryTables = new HashMap<>();
 
   @Override