Repository: james-project
Updated Branches:
  refs/heads/master a5f014f2d -> 0ae36b298


JAMES-2284 Move methods from interface to implementation (deprecate the 
interface)


Project: http://git-wip-us.apache.org/repos/asf/james-project/repo
Commit: http://git-wip-us.apache.org/repos/asf/james-project/commit/c3a109a7
Tree: http://git-wip-us.apache.org/repos/asf/james-project/tree/c3a109a7
Diff: http://git-wip-us.apache.org/repos/asf/james-project/diff/c3a109a7

Branch: refs/heads/master
Commit: c3a109a71082bb4b11446f5fe53b9ba6343a3221
Parents: a5f014f
Author: Antoine Duprat <adup...@linagora.com>
Authored: Thu Jan 18 15:50:47 2018 +0100
Committer: benwa <btell...@linagora.com>
Committed: Mon Jan 22 07:47:24 2018 +0700

----------------------------------------------------------------------
 .../mailrepository/lib/AbstractMailRepository.java  | 14 ++++++++++++--
 .../james/mailrepository/api/MailRepository.java    | 16 ++++------------
 2 files changed, 16 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/c3a109a7/server/data/data-library/src/main/java/org/apache/james/mailrepository/lib/AbstractMailRepository.java
----------------------------------------------------------------------
diff --git 
a/server/data/data-library/src/main/java/org/apache/james/mailrepository/lib/AbstractMailRepository.java
 
b/server/data/data-library/src/main/java/org/apache/james/mailrepository/lib/AbstractMailRepository.java
index f59a36a..7778880 100644
--- 
a/server/data/data-library/src/main/java/org/apache/james/mailrepository/lib/AbstractMailRepository.java
+++ 
b/server/data/data-library/src/main/java/org/apache/james/mailrepository/lib/AbstractMailRepository.java
@@ -60,14 +60,24 @@ public abstract class AbstractMailRepository implements 
MailRepository, Configur
     }
 
     /**
-     * @see org.apache.james.mailrepository.api.MailRepository#unlock(String)
+     * Releases a lock on a message identified the key
+     * 
+     * @param key
+     *            the key of the message to be unlocked
+     * 
+     * @return true if successfully released the lock, false otherwise
      */
     public boolean unlock(String key) {
         return lock.unlock(key);
     }
 
     /**
-     * @see org.apache.james.mailrepository.api.MailRepository#lock(String)
+     * Obtains a lock on a message identified by key
+     * 
+     * @param key
+     *            the key of the message to be locked
+     * 
+     * @return true if successfully obtained the lock, false otherwise
      */
     public boolean lock(String key) {
         return lock.lock(key);

http://git-wip-us.apache.org/repos/asf/james-project/blob/c3a109a7/server/mailrepository/mailrepository-api/src/main/java/org/apache/james/mailrepository/api/MailRepository.java
----------------------------------------------------------------------
diff --git 
a/server/mailrepository/mailrepository-api/src/main/java/org/apache/james/mailrepository/api/MailRepository.java
 
b/server/mailrepository/mailrepository-api/src/main/java/org/apache/james/mailrepository/api/MailRepository.java
index aa2ff34..e1a4092 100644
--- 
a/server/mailrepository/mailrepository-api/src/main/java/org/apache/james/mailrepository/api/MailRepository.java
+++ 
b/server/mailrepository/mailrepository-api/src/main/java/org/apache/james/mailrepository/api/MailRepository.java
@@ -85,22 +85,14 @@ public interface MailRepository {
     void remove(String key) throws MessagingException;
 
     /**
-     * Obtains a lock on a message identified by key
-     * 
-     * @param key
-     *            the key of the message to be locked
-     * 
-     * @return true if successfully obtained the lock, false otherwise
+     * @deprecated This method is implementation dependent, it has been moved 
to org.apache.james.mailrepository.lib.AbstractMailRepository
      */
+    @Deprecated
     boolean lock(String key) throws MessagingException;
 
     /**
-     * Releases a lock on a message identified the key
-     * 
-     * @param key
-     *            the key of the message to be unlocked
-     * 
-     * @return true if successfully released the lock, false otherwise
+     * @deprecated This method is implementation dependent, it has been moved 
to org.apache.james.mailrepository.lib.AbstractMailRepository
      */
+    @Deprecated
     boolean unlock(String key) throws MessagingException;
 }


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