[jboss-cvs] JBoss Messaging SVN: r7023 - trunk/src/main/org/jboss/messaging/core/remoting/impl/ssl.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue May 26 10:47:59 EDT 2009


Author: jmesnil
Date: 2009-05-26 10:47:58 -0400 (Tue, 26 May 2009)
New Revision: 7023

Modified:
   trunk/src/main/org/jboss/messaging/core/remoting/impl/ssl/SSLSupport.java
Log:
replaced Java 6 deprecated method

* replaced call to File.toURL() by File.toURI().toURL()
  as toURL() is deprecated in Java 6

Modified: trunk/src/main/org/jboss/messaging/core/remoting/impl/ssl/SSLSupport.java
===================================================================
--- trunk/src/main/org/jboss/messaging/core/remoting/impl/ssl/SSLSupport.java	2009-05-26 14:36:39 UTC (rev 7022)
+++ trunk/src/main/org/jboss/messaging/core/remoting/impl/ssl/SSLSupport.java	2009-05-26 14:47:58 UTC (rev 7023)
@@ -26,6 +26,7 @@
 import java.io.IOException;
 import java.io.InputStream;
 import java.net.MalformedURLException;
+import java.net.URI;
 import java.net.URL;
 import java.security.GeneralSecurityException;
 import java.security.KeyStore;
@@ -190,7 +191,7 @@
          File file = new File(storePath);
          if (file.exists() == true && file.isFile())
          {
-            return file.toURL();
+            return file.toURI().toURL();
          } else
          {
             URL url = Thread.currentThread().getContextClassLoader()




More information about the jboss-cvs-commits mailing list