incubator-ftpserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r571071 - in /incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util: IllegalInetAddressException.java IllegalPortException.java SocketAddressEncoder.java
Date Thu, 30 Aug 2007 08:41:04 GMT
Author: ngn
Date: Thu Aug 30 01:41:03 2007
New Revision: 571071

URL: http://svn.apache.org/viewvc?rev=571071&view=rev
Log:
Minor fixes to exception subclasses that won't work on Java 1.4

Modified:
    incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/IllegalInetAddressException.java
    incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/IllegalPortException.java
    incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/SocketAddressEncoder.java

Modified: incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/IllegalInetAddressException.java
URL: http://svn.apache.org/viewvc/incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/IllegalInetAddressException.java?rev=571071&r1=571070&r2=571071&view=diff
==============================================================================
--- incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/IllegalInetAddressException.java
(original)
+++ incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/IllegalInetAddressException.java
Thu Aug 30 01:41:03 2007
@@ -30,17 +30,7 @@
         super();
     }
 
-    public IllegalInetAddressException(String message, Throwable cause) {
-        super(message, cause);
-    }
-
     public IllegalInetAddressException(String s) {
         super(s);
     }
-
-    public IllegalInetAddressException(Throwable cause) {
-        super(cause);
-    }
-
-
 }

Modified: incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/IllegalPortException.java
URL: http://svn.apache.org/viewvc/incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/IllegalPortException.java?rev=571071&r1=571070&r2=571071&view=diff
==============================================================================
--- incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/IllegalPortException.java
(original)
+++ incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/IllegalPortException.java
Thu Aug 30 01:41:03 2007
@@ -30,17 +30,7 @@
         super();
     }
 
-    public IllegalPortException(String message, Throwable cause) {
-        super(message, cause);
-    }
-
     public IllegalPortException(String s) {
         super(s);
     }
-
-    public IllegalPortException(Throwable cause) {
-        super(cause);
-    }
-
-
 }

Modified: incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/SocketAddressEncoder.java
URL: http://svn.apache.org/viewvc/incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/SocketAddressEncoder.java?rev=571071&r1=571070&r2=571071&view=diff
==============================================================================
--- incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/SocketAddressEncoder.java
(original)
+++ incubator/ftpserver/trunk/core/src/java/org/apache/ftpserver/util/SocketAddressEncoder.java
Thu Aug 30 01:41:03 2007
@@ -57,7 +57,7 @@
         sb.append('.');
         sb.append(convertAndValidateNumber(st.nextToken()));
         } catch(IllegalArgumentException e) {
-            throw new IllegalInetAddressException(e);
+            throw new IllegalInetAddressException(e.getMessage());
         }
         
         InetAddress dataAddr = InetAddress.getByName(sb.toString());
@@ -71,7 +71,7 @@
             dataPort = (hi << 8) | lo;     
         }
         catch(IllegalArgumentException ex) {
-            throw new IllegalPortException("Invalid data port: " + str, ex);
+            throw new IllegalPortException("Invalid data port: " + str);
         }
 
         return new InetSocketAddress(dataAddr, dataPort);



Mime
View raw message