james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r1207009 - /james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/AbstractCommandDispatcher.java
Date Mon, 28 Nov 2011 08:07:48 GMT
Author: norman
Date: Mon Nov 28 08:07:47 2011
New Revision: 1207009

URL: http://svn.apache.org/viewvc?rev=1207009&view=rev
Log:
Add default implementation of getMandatoryCommands

Modified:
    james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/AbstractCommandDispatcher.java

Modified: james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/AbstractCommandDispatcher.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/AbstractCommandDispatcher.java?rev=1207009&r1=1207008&r2=1207009&view=diff
==============================================================================
--- james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/AbstractCommandDispatcher.java
(original)
+++ james/protocols/trunk/api/src/main/java/org/apache/james/protocols/api/handler/AbstractCommandDispatcher.java
Mon Nov 28 08:07:47 2011
@@ -21,6 +21,7 @@ package org.apache.james.protocols.api.h
 
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.Collections;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.LinkedList;
@@ -221,7 +222,10 @@ public abstract class AbstractCommandDis
      * 
      * @return mCommands
      */
-    protected abstract List<String> getMandatoryCommands();
+    @SuppressWarnings("unchecked")
+    protected List<String> getMandatoryCommands() {
+        return Collections.EMPTY_LIST;
+    }
     
     /**
      * Return the identifier to lookup the UnknownCmdHandler in the handler map



---------------------------------------------------------------------
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