cleanup: code simplified

This commit is contained in:
nik
2017-01-18 09:03:37 +03:00
parent 0ee167156d
commit f81fe8fc0a
@@ -42,7 +42,7 @@ public class JavaSdkUtil {
File[] jarDirs;
if (SystemInfo.isMac && !home.getName().startsWith("mockJDK")) {
File openJdkRtJar = new File(home, "jre/lib/rt.jar");
if (openJdkRtJar.exists() && !openJdkRtJar.isDirectory()) {
if (openJdkRtJar.isFile()) {
File libDir = new File(home, "lib");
File classesDir = openJdkRtJar.getParentFile();
File libExtDir = new File(openJdkRtJar.getParentFile(), "ext");