james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From btell...@apache.org
Subject [20/20] james-project git commit: MAILBOX-315 *clearAllTables* is no more used and can thus be removed
Date Thu, 01 Feb 2018 10:44:53 GMT
MAILBOX-315 *clearAllTables* is no more used and can thus be removed


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

Branch: refs/heads/master
Commit: 379d1eb4c28b63bbed91b48be2ba1978dce6e762
Parents: 8e6fd6e
Author: benwa <btellier@linagora.com>
Authored: Tue Jan 30 09:33:30 2018 +0700
Committer: benwa <btellier@linagora.com>
Committed: Thu Feb 1 17:42:29 2018 +0700

----------------------------------------------------------------------
 .../apache/james/backends/cassandra/CassandraCluster.java   | 9 ---------
 1 file changed, 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/james-project/blob/379d1eb4/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/CassandraCluster.java
----------------------------------------------------------------------
diff --git a/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/CassandraCluster.java
b/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/CassandraCluster.java
index caaea05..692b2c4 100644
--- a/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/CassandraCluster.java
+++ b/backends-common/cassandra/src/test/java/org/apache/james/backends/cassandra/CassandraCluster.java
@@ -20,7 +20,6 @@ package org.apache.james.backends.cassandra;
 
 import java.util.Optional;
 
-import javax.annotation.PreDestroy;
 import javax.inject.Inject;
 import javax.inject.Named;
 
@@ -83,17 +82,9 @@ public final class CassandraCluster implements AutoCloseable {
         }
     }
 
-
-
     public Session getConf() {
         return session;
     }
-
-    @PreDestroy
-    public void clearAllTables() {
-        session.close();
-        cluster.close();
-    }
     
     private Optional<Session> tryInitializeSession() {
         try {


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