use org.intellij.lang.annotations.Flow to locate annotations.jar when building the classpath, because NotNull.class is also present in the Kotlin Java runtime

This commit is contained in:
Dmitry Jemerov
2015-07-21 18:05:32 +02:00
parent 0eeeab3f6b
commit 7fae5a062d
@@ -24,6 +24,7 @@ import com.sun.jna.platform.FileUtils;
import gnu.trove.THashSet;
import org.apache.log4j.Appender;
import org.apache.oro.text.regex.PatternMatcher;
import org.intellij.lang.annotations.Flow;
import org.iq80.snappy.Snappy;
import org.jdom.Document;
import org.jetbrains.annotations.Contract;
@@ -431,7 +432,7 @@ public class PathManager {
public static Collection<String> getUtilClassPath() {
final Class<?>[] classes = {
PathManager.class, // module 'util'
NotNull.class, // module 'annotations'
Flow.class, // module 'annotations'
SystemInfoRt.class, // module 'util-rt'
Document.class, // jDOM
Appender.class, // log4j