IDEA-166362 Show warning notification concerning outdated boot java runtime

Cosmetic changes
This commit is contained in:
Alexey Ushakov
2017-01-16 12:25:41 +03:00
parent 32590d9d0d
commit 4864b457e0
@@ -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) {