james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r941169 - /james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/core/DataLineMessageHookHandler.java
Date Wed, 05 May 2010 06:51:44 GMT
Author: norman
Date: Wed May  5 06:51:44 2010
New Revision: 941169

URL: http://svn.apache.org/viewvc?rev=941169&view=rev
Log:
Remove incorrect instanceof check

Modified:
    james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/core/DataLineMessageHookHandler.java

Modified: james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/core/DataLineMessageHookHandler.java
URL: http://svn.apache.org/viewvc/james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/core/DataLineMessageHookHandler.java?rev=941169&r1=941168&r2=941169&view=diff
==============================================================================
--- james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/core/DataLineMessageHookHandler.java
(original)
+++ james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/core/DataLineMessageHookHandler.java
Wed May  5 06:51:44 2010
@@ -37,7 +37,6 @@ import org.apache.james.protocols.smtp.d
 import org.apache.james.protocols.smtp.hook.HookResult;
 import org.apache.james.protocols.smtp.hook.HookResultHook;
 import org.apache.james.protocols.smtp.hook.MessageHook;
-import org.apache.mailet.Mail;
 
 public final class DataLineMessageHookHandler implements DataLineFilter, ExtensibleHandler
{
 
@@ -92,7 +91,7 @@ public final class DataLineMessageHookHa
      * @param session
      */
     private void processExtensions(SMTPSession session, MailEnvelopeImpl mail) {
-        if(mail != null && mail instanceof Mail && messageHandlers != null)
{
+        if(mail != null && messageHandlers != null) {
             try {
                 int count = messageHandlers.size();
                 for(int i =0; i < count; i++) {



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