aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorohlenlar2012-11-08 13:49:05 (EST)
committerohlenlar2012-11-08 13:49:05 (EST)
commit98ea6db3b371efb916fdf767edc2894d11256628 (patch)
tree7d15f89ac679c80707075a5a9df97ccecc40bfaa
parent2ea82d7d41e56a1030b47cdc8e2b944e1744b8a4 (diff)
downloadorg.eclipse.lyo.client-98ea6db3b371efb916fdf767edc2894d11256628.zip
org.eclipse.lyo.client-98ea6db3b371efb916fdf767edc2894d11256628.tar.gz
org.eclipse.lyo.client-98ea6db3b371efb916fdf767edc2894d11256628.tar.bz2
Updated deprecated java API usage Change-Id: Ib3d8b5668b169f18bf88ec01bc3e2b2bcd8e0480 Signed-off-by: ohlenlar <lars.ohlen@tieto.com>
-rw-r--r--org.eclipse.lyo.client.java/src/main/java/org/eclipse/lyo/client/oslc/OslcClient.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.lyo.client.java/src/main/java/org/eclipse/lyo/client/oslc/OslcClient.java b/org.eclipse.lyo.client.java/src/main/java/org/eclipse/lyo/client/oslc/OslcClient.java
index e6e2987..6e82ae9 100644
--- a/org.eclipse.lyo.client.java/src/main/java/org/eclipse/lyo/client/oslc/OslcClient.java
+++ b/org.eclipse.lyo.client.java/src/main/java/org/eclipse/lyo/client/oslc/OslcClient.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2012 IBM Corporation.
+ * Copyright (c) 2011, 2012 IBM Corporation and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -11,7 +11,8 @@
*
* Contributors:
*
- * Michael Fiedler - initial API and implementation
+ * Michael Fiedler - initial API and implementation
+ * Lars OhlÚn (Tieto Corporation) - Resolved Bugzilla 393875
*******************************************************************************/
package org.eclipse.lyo.client.oslc;
import java.io.IOException;
@@ -400,9 +401,8 @@ public class OslcClient {
/* Fail Silently */
}
- SSLSocketFactory sf = new SSLSocketFactory(sc);
- sf.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
- Scheme https = new Scheme("https", sf, 443);
+ SSLSocketFactory sf = new SSLSocketFactory(sc,SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
+ Scheme https = new Scheme("https", 443, sf); //$NON-NLS-1$
schemeRegistry.register(https);
}