mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
cleanup
GitOrigin-RevId: 5edec9b77fba14c08c497a03082a0de7bee276cd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ed032a9767
commit
3eaaceffac
@@ -107,8 +107,7 @@ import org.jetbrains.jps.incremental.storage.ProjectStamps;
|
||||
import org.jetbrains.jps.javac.Iterators;
|
||||
import org.jetbrains.jps.model.java.compiler.JavaCompilers;
|
||||
|
||||
import javax.tools.JavaCompiler;
|
||||
import javax.tools.ToolProvider;
|
||||
import javax.tools.*;
|
||||
import java.awt.*;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
@@ -433,12 +432,8 @@ public final class BuildManager implements Disposable {
|
||||
mySuspendBackgroundTasksCounter.decrementAndGet();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
private static String getFallbackSdkHome() {
|
||||
private static @NotNull String getFallbackSdkHome() {
|
||||
String home = SystemProperties.getJavaHome(); // should point either to jre or jdk
|
||||
if (home == null) {
|
||||
return null;
|
||||
}
|
||||
if (!JdkUtil.checkForJdk(home)) {
|
||||
String parent = new File(home).getParent();
|
||||
if (parent != null && JdkUtil.checkForJdk(parent)) {
|
||||
|
||||
Reference in New Issue
Block a user