diff --git a/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateCheckerComponent.java b/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateCheckerComponent.java
index 0923877efee8..d69b675c29ff 100644
--- a/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateCheckerComponent.java
+++ b/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateCheckerComponent.java
@@ -33,7 +33,6 @@ import com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.PluginsAdve
import com.intellij.openapi.util.BuildNumber;
import com.intellij.openapi.util.Disposer;
import com.intellij.openapi.util.Ref;
-import com.intellij.openapi.util.SystemInfo;
import com.intellij.util.Alarm;
import com.intellij.util.text.DateFormatUtil;
import org.jetbrains.annotations.NotNull;
@@ -64,12 +63,12 @@ public class UpdateCheckerComponent implements ApplicationComponent {
public UpdateCheckerComponent(@NotNull Application app, @NotNull UpdateSettings settings) {
mySettings = settings;
- updateDefaultChannel(app);
+ updateDefaultChannel();
checkSecureConnection(app);
scheduleOnStartCheck(app);
}
- private void updateDefaultChannel(Application app) {
+ private void updateDefaultChannel() {
ChannelStatus current = mySettings.getSelectedChannelStatus();
LOG.info("channel: " + current.getCode());
boolean eap = ApplicationInfoEx.getInstanceEx().isEAP();
@@ -90,17 +89,16 @@ public class UpdateCheckerComponent implements ApplicationComponent {
}
}
- private void checkSecureConnection(final Application app) {
+ private void checkSecureConnection(Application app) {
if (mySettings.isSecureConnection() && !mySettings.canUseSecureConnection()) {
mySettings.setSecureConnection(false);
- boolean tooOld = !SystemInfo.isJavaVersionAtLeast("1.7");
String title = IdeBundle.message("update.notifications.title");
- String message = IdeBundle.message(tooOld ? "update.sni.not.available.message" : "update.sni.disabled.message");
+ String message = IdeBundle.message("update.sni.disabled.message");
UpdateChecker.NOTIFICATIONS.createNotification(title, message, NotificationType.WARNING, new NotificationListener.Adapter() {
@Override
- protected void hyperlinkActivated(@NotNull Notification notification1, @NotNull HyperlinkEvent e) {
- notification1.expire();
+ protected void hyperlinkActivated(@NotNull Notification notification, @NotNull HyperlinkEvent e) {
+ notification.expire();
app.invokeLater(new Runnable() {
@Override
public void run() {
diff --git a/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateSettingsConfigurable.java b/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateSettingsConfigurable.java
index 54b854054c55..93e0807d5cc0 100644
--- a/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateSettingsConfigurable.java
+++ b/platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdateSettingsConfigurable.java
@@ -30,7 +30,6 @@ import com.intellij.openapi.options.SearchableConfigurable;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.ui.Messages;
import com.intellij.openapi.updateSettings.UpdateStrategyCustomization;
-import com.intellij.openapi.util.SystemInfo;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.ui.CollectionComboBoxModel;
import com.intellij.ui.JBColor;
@@ -97,9 +96,7 @@ public class UpdateSettingsConfigurable extends BaseConfigurable implements Sear
@Override
public void apply() throws ConfigurationException {
if (myPanel.myUseSecureConnection.isSelected() && !NetUtils.isSniEnabled()) {
- boolean tooOld = !SystemInfo.isJavaVersionAtLeast("1.7");
- String message = IdeBundle.message(tooOld ? "update.sni.not.available.error" : "update.sni.disabled.error");
- throw new ConfigurationException(message);
+ throw new ConfigurationException(IdeBundle.message("update.sni.disabled.error"));
}
boolean wasEnabled = mySettings.isCheckNeeded();
diff --git a/platform/platform-resources-en/src/messages/IdeBundle.properties b/platform/platform-resources-en/src/messages/IdeBundle.properties
index b0abd424b7bb..a7578444c459 100644
--- a/platform/platform-resources-en/src/messages/IdeBundle.properties
+++ b/platform/platform-resources-en/src/messages/IdeBundle.properties
@@ -949,11 +949,7 @@ update.plugins.update.action=&Update
update.restart.plugins.update.action=&Update and Restart
update.shutdown.plugins.update.action=&Update and Shutdown
update.channel.enforced=Update channel switched to ''{0}''
-update.sni.not.available.error=Secure connection is not supported on Java 6
update.sni.disabled.error=Secure connection is impossible with 'jsse.enableSNIExtension' property set to false
-update.sni.not.available.message=We wanted your IDE to receive upgrades over a secure connection. \
- Unfortunately, this doesn't work on Java 6, so the option was disabled. \
- You can enabled it again in settings after upgrading the JRE.
update.sni.disabled.message=We wanted your IDE to receive upgrades over a secure connection. \
Unfortunately, this doesn't work with the 'jsse.enableSNIExtension' property set to 'false', so the option was disabled. \
You can enabled it again in settings after setting the property to 'true'.