Change visibility of IRCClient methods
authorJan Dittberner <jandd@cacert.org>
Mon, 1 May 2017 17:31:49 +0000 (19:31 +0200)
committerJan Dittberner <jandd@cacert.org>
Mon, 1 May 2017 17:31:49 +0000 (19:31 +0200)
src/main/java/org/cacert/votebot/shared/IRCClient.java

index 105042d..d82068c 100644 (file)
@@ -64,6 +64,7 @@ import java.util.concurrent.Semaphore;
  * @author Felix Doerre
  * @author Jan Dittberner
  */
+@SuppressWarnings({"unused", "WeakerAccess"})
 @Component
 public final class IRCClient {
     /**
@@ -213,9 +214,8 @@ public final class IRCClient {
         }
     }
 
-    @SuppressWarnings("unused")
     @PreDestroy
-    private void leaveAll() {
+    public void leaveAll() {
         List<String> channels = new ArrayList<>(joinedChannels);
         for (String channel : channels) {
             try {