Author: matthieu
Date: Mon Nov  2 13:43:58 2015
New Revision: 1711976

URL: http://svn.apache.org/viewvc?rev=1711976&view=rev
Log:
JAMES-1595 Remove addAll(List<String>) needs on Mappings object

Modified:
    
james/project/trunk/server/data/data-api/src/main/java/org/apache/james/rrt/lib/Mappings.java
    
james/project/trunk/server/mailet/mailets/src/test/java/org/apache/james/transport/mailets/RecipientRewriteTableMock.java

Modified: 
james/project/trunk/server/data/data-api/src/main/java/org/apache/james/rrt/lib/Mappings.java
URL: 
http://svn.apache.org/viewvc/james/project/trunk/server/data/data-api/src/main/java/org/apache/james/rrt/lib/Mappings.java?rev=1711976&r1=1711975&r2=1711976&view=diff
==============================================================================
--- 
james/project/trunk/server/data/data-api/src/main/java/org/apache/james/rrt/lib/Mappings.java
 (original)
+++ 
james/project/trunk/server/data/data-api/src/main/java/org/apache/james/rrt/lib/Mappings.java
 Mon Nov  2 13:43:58 2015
@@ -21,7 +21,6 @@
 package org.apache.james.rrt.lib;
 
 import java.util.Collection;
-import java.util.List;
 
 public interface Mappings extends Iterable<String> {
 
@@ -37,8 +36,6 @@ public interface Mappings extends Iterab
 
     boolean remove(String mapping);
 
-    void addAll(List<String> target);
-
     boolean isEmpty();
 
 }
\ No newline at end of file

Modified: 
james/project/trunk/server/mailet/mailets/src/test/java/org/apache/james/transport/mailets/RecipientRewriteTableMock.java
URL: 
http://svn.apache.org/viewvc/james/project/trunk/server/mailet/mailets/src/test/java/org/apache/james/transport/mailets/RecipientRewriteTableMock.java?rev=1711976&r1=1711975&r2=1711976&view=diff
==============================================================================
--- 
james/project/trunk/server/mailet/mailets/src/test/java/org/apache/james/transport/mailets/RecipientRewriteTableMock.java
 (original)
+++ 
james/project/trunk/server/mailet/mailets/src/test/java/org/apache/james/transport/mailets/RecipientRewriteTableMock.java
 Mon Nov  2 13:43:58 2015
@@ -31,9 +31,9 @@ public class RecipientRewriteTableMock i
 
     public static class Mapping {
         public final String address;
-        public final List<String> target;
+        public final Mappings target;
 
-        public Mapping(String address, List<String> target) {
+        public Mapping(String address, Mappings target) {
             this.address = address;
             this.target = target;
         }
@@ -44,7 +44,7 @@ public class RecipientRewriteTableMock i
         }
 
         public Mapping to(String... target) {
-            return new Mapping(address, Arrays.asList(target));
+            return new Mapping(address, 
MappingsImpl.fromCollection(Arrays.asList(target)));
         }
     }
 



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

Reply via email to