From 87060561c0b01ad16e77b6404ade1543650cddff Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Fri, 8 Jun 2018 14:42:34 +0300 Subject: [PATCH] reverted --- .../src/com/intellij/openapi/roots/impl/ContentEntryImpl.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ContentEntryImpl.java b/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ContentEntryImpl.java index 187fe7ffd538..058d592449bc 100644 --- a/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ContentEntryImpl.java +++ b/platform/projectModel-impl/src/com/intellij/openapi/roots/impl/ContentEntryImpl.java @@ -270,9 +270,6 @@ public class ContentEntryImpl extends RootModelComponentBase implements ContentE @Override public ExcludeFolder addExcludeFolder(@NotNull VirtualFile file) { assert !isDisposed(); - if (!file.isDirectory()) { - throw new IllegalArgumentException("File must be folder but got: "+file); - } assertCanAddFolder(file); return addExcludeFolder(new ExcludeFolderImpl(file, this)); }