diff --git a/java/java-impl/src/com/intellij/codeInspection/ex/EntryPointsManagerImpl.java b/java/java-impl/src/com/intellij/codeInspection/ex/EntryPointsManagerImpl.java index 0b0c60e7395d..9797dc6e7b12 100644 --- a/java/java-impl/src/com/intellij/codeInspection/ex/EntryPointsManagerImpl.java +++ b/java/java-impl/src/com/intellij/codeInspection/ex/EntryPointsManagerImpl.java @@ -241,7 +241,7 @@ public class EntryPointsManagerImpl implements PersistentStateComponent } } - if (isPersistent) { + if (!isPersistent) { myTemporaryEntryPoints.add(newEntryPoint); ((RefElementImpl)newEntryPoint).setEntry(true); }