]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-10604 remove unused methods in HazelcastMember
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 27 Apr 2018 08:27:28 +0000 (10:27 +0200)
committerSonarTech <sonartech@sonarsource.com>
Thu, 10 May 2018 18:20:54 +0000 (20:20 +0200)
server/sonar-process/src/main/java/org/sonar/process/cluster/hz/HazelcastMember.java
server/sonar-process/src/main/java/org/sonar/process/cluster/hz/HazelcastMemberImpl.java
server/sonar-process/src/test/java/org/sonar/process/cluster/hz/HazelcastMemberBuilderTest.java

index 012c1e1d1d449d5d80c52c50a9070761546d9f75..92cf2767d731661f8423cd5771c7a57e67c67160 100644 (file)
@@ -22,7 +22,6 @@ package org.sonar.process.cluster.hz;
 import com.hazelcast.core.Cluster;
 import com.hazelcast.core.IAtomicReference;
 import com.hazelcast.core.MemberSelector;
-import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.locks.Lock;
@@ -53,21 +52,6 @@ public interface HazelcastMember extends AutoCloseable {
 
   <E> IAtomicReference<E> getAtomicReference(String name);
 
-  /**
-   * Gets the set shared by the cluster and identified by name
-   */
-  <E> Set<E> getSet(String name);
-
-  /**
-   * Gets the list shared by the cluster and identified by name
-   */
-  <E> List<E> getList(String name);
-
-  /**
-   * Gets the map shared by the cluster and identified by name
-   */
-  <K, V> Map<K, V> getMap(String name);
-
   /**
    * Gets the replicated map shared by the cluster and identified by name.
    * Result can be casted to {@link com.hazelcast.core.ReplicatedMap} if needed to
index e40714871c25eace3f2f786da9e404ae15af8038..5d245a264ca4f6f3983bbcc8cd0404c778245379 100644 (file)
@@ -26,7 +26,6 @@ import com.hazelcast.core.IAtomicReference;
 import com.hazelcast.core.IExecutorService;
 import com.hazelcast.core.Member;
 import com.hazelcast.core.MemberSelector;
-import java.util.List;
 import java.util.Map;
 import java.util.Set;
 import java.util.concurrent.ExecutionException;
@@ -50,21 +49,6 @@ class HazelcastMemberImpl implements HazelcastMember {
     return hzInstance.getAtomicReference(name);
   }
 
-  @Override
-  public <E> Set<E> getSet(String s) {
-    return hzInstance.getSet(s);
-  }
-
-  @Override
-  public <E> List<E> getList(String s) {
-    return hzInstance.getList(s);
-  }
-
-  @Override
-  public <K, V> Map<K, V> getMap(String s) {
-    return hzInstance.getMap(s);
-  }
-
   @Override
   public <K, V> Map<K, V> getReplicatedMap(String s) {
     return hzInstance.getReplicatedMap(s);
index a829d1008caf6b5eaddc91078d951381254021f0..f30be9e526fcb6cedb022204c3b41ea376529201 100644 (file)
@@ -61,9 +61,6 @@ public class HazelcastMemberBuilderTest {
     assertThat(member.getAtomicReference("baz")).isNotNull();
     assertThat(member.getLock("baz")).isNotNull();
     assertThat(member.getReplicatedMap("baz")).isNotNull();
-    assertThat(member.getList("baz")).isNotNull();
-    assertThat(member.getMap("baz")).isNotNull();
-    assertThat(member.getSet("baz")).isNotNull();
 
     member.close();
   }