use Collections.emptySet (code cleanup)
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Wed, 5 Aug 2015 14:39:06 +0000 (17:39 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Wed, 5 Aug 2015 14:39:06 +0000 (17:39 +0300)
platform/indexing-api/src/com/intellij/util/indexing/IndexableSetContributor.java

index e3311970849b08fd9ed7bd45fb6afc166ca3b3e0..bac287d4f6d5325d29d5c354a3e18591d33fe14a 100644 (file)
@@ -32,8 +32,8 @@ import java.util.Set;
  */
 public abstract class IndexableSetContributor implements IndexedRootsProvider {
   
-  protected static final Set<VirtualFile> EMPTY_FILE_SET = Collections.unmodifiableSet(new HashSet<VirtualFile>());
-  
+  protected static final Set<VirtualFile> EMPTY_FILE_SET = Collections.emptySet();
+
   @Override
   public final Set<String> getRootsToIndex() {
     return ContainerUtil.map2Set(getAdditionalRootsToIndex(), new NotNullFunction<VirtualFile, String>() {