james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r492550 - /james/server/trunk/src/java/org/apache/james/mailrepository/MBoxMailRepository.java
Date Thu, 04 Jan 2007 12:47:30 GMT
Author: norman
Date: Thu Jan  4 04:47:29 2007
New Revision: 492550

URL: http://svn.apache.org/viewvc?view=rev&rev=492550
Log:
Fix class CastException, fix comment and replace a Vector with ArrayList. See JAMES-721

Modified:
    james/server/trunk/src/java/org/apache/james/mailrepository/MBoxMailRepository.java

Modified: james/server/trunk/src/java/org/apache/james/mailrepository/MBoxMailRepository.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/mailrepository/MBoxMailRepository.java?view=diff&rev=492550&r1=492549&r2=492550
==============================================================================
--- james/server/trunk/src/java/org/apache/james/mailrepository/MBoxMailRepository.java (original)
+++ james/server/trunk/src/java/org/apache/james/mailrepository/MBoxMailRepository.java Thu
Jan  4 04:47:29 2007
@@ -604,10 +604,9 @@
      * @see org.apache.james.services.MailRepository#remove(Mail)
      */
     public void remove(Mail mail) {
-        // Convert the message into a key
-        Vector delVec = new Vector();
-        delVec.addElement(mail);
-        remove(delVec);
+        ArrayList remArray = new ArrayList();
+        remArray.add(mail);
+        remove(remArray);
     }
 
     /**
@@ -762,7 +761,7 @@
             return; // No lock, so exit
         }
         ArrayList keys = new ArrayList();
-        keys.add(key);
+        keys.add(retrieve(key));
 
         this.remove(keys);
         unlockMBox();



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message