You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2019/11/20 01:56:52 UTC

[james-project] 24/49: [Refactoring] MailStateNotEquals class is not used

This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 437710d434fa48079c23a72ebc1164125b85dbcb
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Sun Nov 17 14:58:37 2019 +0700

    [Refactoring] MailStateNotEquals class is not used
---
 .../impl/camel/MailStateNotEquals.java             | 42 ----------------------
 1 file changed, 42 deletions(-)

diff --git a/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/camel/MailStateNotEquals.java b/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/camel/MailStateNotEquals.java
deleted file mode 100644
index 11b124e..0000000
--- a/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/camel/MailStateNotEquals.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/****************************************************************
- * Licensed to the Apache Software Foundation (ASF) under one   *
- * or more contributor license agreements.  See the NOTICE file *
- * distributed with this work for additional information        *
- * regarding copyright ownership.  The ASF licenses this file   *
- * to you under the Apache License, Version 2.0 (the            *
- * "License"); you may not use this file except in compliance   *
- * with the License.  You may obtain a copy of the License at   *
- *                                                              *
- *   http://www.apache.org/licenses/LICENSE-2.0                 *
- *                                                              *
- * Unless required by applicable law or agreed to in writing,   *
- * software distributed under the License is distributed on an  *
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
- * KIND, either express or implied.  See the License for the    *
- * specific language governing permissions and limitations      *
- * under the License.                                           *
- ****************************************************************/
-package org.apache.james.mailetcontainer.impl.camel;
-
-import org.apache.camel.Exchange;
-import org.apache.camel.Predicate;
-import org.apache.mailet.Mail;
-
-/**
- * Check if the Mail state is NOT equal to the one given on the constructor
- */
-public class MailStateNotEquals implements Predicate {
-
-    private final String state;
-
-    public MailStateNotEquals(String state) {
-        this.state = state;
-    }
-
-    @Override
-    public boolean matches(Exchange ex) {
-        Mail m = ex.getIn().getBody(Mail.class);
-        return !state.equals(m.getState());
-    }
-
-}


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