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

[james-project] 05/49: [Refactoring] AbstractFileRepository::createChildRepository is never 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 316bad3fec352d861b44238f5d7ef367eb40f41f
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Mon Nov 18 13:59:40 2019 +0700

    [Refactoring] AbstractFileRepository::createChildRepository is never used
---
 .../apache/james/repository/file/AbstractFileRepository.java | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/server/data/data-library/src/main/java/org/apache/james/repository/file/AbstractFileRepository.java b/server/data/data-library/src/main/java/org/apache/james/repository/file/AbstractFileRepository.java
index a2185ff..d3e4ab1 100644
--- a/server/data/data-library/src/main/java/org/apache/james/repository/file/AbstractFileRepository.java
+++ b/server/data/data-library/src/main/java/org/apache/james/repository/file/AbstractFileRepository.java
@@ -154,18 +154,6 @@ public abstract class AbstractFileRepository implements Configurable {
     }
 
     /**
-     * Return a new instance of this class
-     * 
-     * @return class a new instance of AbstractFileRepository
-     * @throws Exception
-     *             get thrown if an error is detected while create the new
-     *             instance
-     */
-    protected AbstractFileRepository createChildRepository() throws Exception {
-        return getClass().newInstance();
-    }
-
-    /**
      * Return the File Object which belongs to the given key
      * 
      * @param key


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