Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2018-05-02 12:00:05 +0000
committerEike Stepper2018-05-02 12:00:05 +0000
commit337b745af75ab864630044b9dc525096dbd95b51 (patch)
tree1a68bc6a7f5f3222e1ddc7b5087a2b071c2fa3cb /plugins/org.eclipse.net4j.tcp
parent52a62ab5e7e7d8aff1e482a32a453fe67ff3bf62 (diff)
downloadcdo-337b745af75ab864630044b9dc525096dbd95b51.tar.gz
cdo-337b745af75ab864630044b9dc525096dbd95b51.tar.xz
cdo-337b745af75ab864630044b9dc525096dbd95b51.zip
[Releng] Add more typed OMPlatform.getProperty() methods
Diffstat (limited to 'plugins/org.eclipse.net4j.tcp')
-rw-r--r--plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/bundle/OM.java15
-rw-r--r--plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/tcp/ssl/SSLUtil.java3
2 files changed, 2 insertions, 16 deletions
diff --git a/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/bundle/OM.java b/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/bundle/OM.java
index 930d1d0083..3a7d16bd5c 100644
--- a/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/bundle/OM.java
+++ b/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/bundle/OM.java
@@ -45,20 +45,7 @@ public abstract class OM
public static int getDefaultPort()
{
- try
- {
- String property = BUNDLE.getPlatform().getProperty(DEFAULT_PORT_PROPERTY);
- if (property != null)
- {
- return Integer.valueOf(property);
- }
- }
- catch (Exception ex)
- {
- OM.LOG.error(ex);
- }
-
- return DEFAULT_PORT;
+ return BUNDLE.getPlatform().getProperty(DEFAULT_PORT_PROPERTY, DEFAULT_PORT);
}
/**
diff --git a/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/tcp/ssl/SSLUtil.java b/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/tcp/ssl/SSLUtil.java
index 9013cee03e..98487ea677 100644
--- a/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/tcp/ssl/SSLUtil.java
+++ b/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/tcp/ssl/SSLUtil.java
@@ -187,8 +187,7 @@ public class SSLUtil
KeyManager[] keyManagers = null;
TrustManager[] trustManagers = null;
- String checkValidity = OMPlatform.INSTANCE.getProperty(SSLProperties.CHECK_VALIDITY_CERTIFICATE);
- boolean checkValidtyStatus = checkValidity == null || Boolean.valueOf(checkValidity);
+ boolean checkValidtyStatus = OMPlatform.INSTANCE.isProperty(SSLProperties.CHECK_VALIDITY_CERTIFICATE, true);
if (client)
{
// Initial key material(private key) for the client.

Back to the top