commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r962837 - /commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSTrustManager.java
Date Sat, 10 Jul 2010 12:52:25 GMT
Author: sebb
Date: Sat Jul 10 12:52:24 2010
New Revision: 962837

URL: http://svn.apache.org/viewvc?rev=962837&view=rev
Log:
getAcceptedIssuers() is not supposed to return null

Modified:
    commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSTrustManager.java

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSTrustManager.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSTrustManager.java?rev=962837&r1=962836&r2=962837&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSTrustManager.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSTrustManager.java
Sat Jul 10 12:52:24 2010
@@ -31,6 +31,8 @@ import javax.net.ssl.X509TrustManager;
  */
 public class FTPSTrustManager implements X509TrustManager
 {
+    private static final X509Certificate[] EMPTY_X509CERTIFICATE_ARRAY = new X509Certificate[]{};
+
     /**
      * No-op
      */
@@ -49,6 +51,6 @@ public class FTPSTrustManager implements
 
     public X509Certificate[] getAcceptedIssuers()
     {
-        return null;
+        return EMPTY_X509CERTIFICATE_ARRAY;
     }
 }



Mime
View raw message