commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwins...@apache.org
Subject svn commit: r629756 - in /commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp: FTPFileEntryParser.java FTPFileEntryParserImpl.java parser/VMSVersioningFTPEntryParser.java
Date Thu, 21 Feb 2008 11:36:00 GMT
Author: rwinston
Date: Thu Feb 21 03:35:59 2008
New Revision: 629756

URL: http://svn.apache.org/viewvc?rev=629756&view=rev
Log:
Parameterise list

Modified:
    commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPFileEntryParser.java
    commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPFileEntryParserImpl.java
    commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPFileEntryParser.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPFileEntryParser.java?rev=629756&r1=629755&r2=629756&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPFileEntryParser.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPFileEntryParser.java
Thu Feb 21 03:35:59 2008
@@ -137,7 +137,7 @@
      *
      * @return Original list as processed by this method.
      */
-    List preParse(List original);
+    List preParse(List<String> original);
 
 
 }

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPFileEntryParserImpl.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPFileEntryParserImpl.java?rev=629756&r1=629755&r2=629756&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPFileEntryParserImpl.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPFileEntryParserImpl.java
Thu Feb 21 03:35:59 2008
@@ -64,7 +64,7 @@
      *
      * @return <code>original</code> unmodified.
      */
-     public List preParse(List original) {
+     public List preParse(List<String> original) {
          Iterator it = original.iterator();
          while (it.hasNext()){
             String entry = (String) it.next();

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java?rev=629756&r1=629755&r2=629756&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/parser/VMSVersioningFTPEntryParser.java
Thu Feb 21 03:35:59 2008
@@ -98,7 +98,7 @@
 
 
 
-    private class NameVersion {
+    private static class NameVersion {
         String name;
         int versionNumber;
         NameVersion(String name, String vers) {
@@ -116,7 +116,7 @@
      *
      * @return Original list purged of duplicates
      */
-    public List preParse(List original) {
+    public List preParse(List<String> original) {
         original = super.preParse(original);
         HashMap<String, NameVersion> existingEntries = new HashMap<String, NameVersion>();
         ListIterator iter = original.listIterator();



Mime
View raw message