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:53 UTC

[james-project] 25/49: [Refactoring] MailStateEquals 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 7bb9b6500ac92b9320ce40383541192895fcb41e
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Sun Nov 17 14:59:06 2019 +0700

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

diff --git a/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/camel/MailStateEquals.java b/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/camel/MailStateEquals.java
deleted file mode 100644
index 6f2b00d..0000000
--- a/server/mailet/mailetcontainer-camel/src/main/java/org/apache/james/mailetcontainer/impl/camel/MailStateEquals.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 the the Mail state is Equals to the one give on the constructor
- */
-public class MailStateEquals implements Predicate {
-
-    private final String state;
-
-    public MailStateEquals(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