mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
IDEA-166362 Show warning notification concerning outdated boot java runtime
Cosmetic changes
This commit is contained in:
@@ -93,16 +93,15 @@ public class SystemHealthMonitor extends ApplicationComponent.Adapter {
|
||||
|
||||
final File bundledJDKAbsoluteLocation = JdkBundle.getBundledJDKAbsoluteLocation();
|
||||
if (bundledJDKAbsoluteLocation.exists() && bundle.getBitness() == Bitness.x64) {
|
||||
if (!SystemInfo.isMacIntel64) {
|
||||
if (SystemInfo.isWindows || SystemInfo.isLinux) {
|
||||
JdkBundle bundledJdk = JdkBundle.createBundle(bundledJDKAbsoluteLocation, false, false);
|
||||
if (bundledJdk.getVersion() != null)
|
||||
showSwitchOption = true; // Version of bundled jdk is available, so the jdk is compatible with underlying OS
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (SystemInfo.isMacIntel64) {
|
||||
showSwitchOption = true;
|
||||
}
|
||||
else if (SystemInfo.isWindows || SystemInfo.isLinux) {
|
||||
JdkBundle bundledJdk = JdkBundle.createBundle(bundledJDKAbsoluteLocation, false, false);
|
||||
if (bundledJdk.getVersion() != null) {
|
||||
showSwitchOption = true; // Version of bundled jdk is available, so the jdk is compatible with underlying OS
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (showSwitchOption) {
|
||||
|
||||
Reference in New Issue
Block a user