aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/stomp/StompClient.java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/stomp/StompClient.java24
1 files changed, 21 insertions, 3 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompClient.java b/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompClient.java
index 7e8d89f6..1381a2c3 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompClient.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompClient.java
@@ -1,3 +1,21 @@
+/*
+ * Dungeons Guide - The most intelligent Hypixel Skyblock Dungeons Mod
+ * Copyright (C) 2021 cyoung06
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published
+ * by the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
package kr.syeyoung.dungeonsguide.stomp;
import lombok.Getter;
@@ -35,7 +53,7 @@ public class StompClient extends WebSocketClient implements StompInterface {
while(this.stompClientStatus == StompClientStatus.CONNECTING);
System.out.println("fully connected");
}
- private CloseListener closeListener;
+ private final CloseListener closeListener;
@Getter
private volatile StompClientStatus stompClientStatus = StompClientStatus.CONNECTING;
@@ -103,8 +121,8 @@ public class StompClient extends WebSocketClient implements StompInterface {
ex.printStackTrace();
}
- private Map<Integer, StompSubscription> stompSubscriptionMap = new HashMap<Integer, StompSubscription>();
- private Map<Integer, StompPayload> receiptMap = new HashMap<Integer, StompPayload>();
+ private final Map<Integer, StompSubscription> stompSubscriptionMap = new HashMap<Integer, StompSubscription>();
+ private final Map<Integer, StompPayload> receiptMap = new HashMap<Integer, StompPayload>();
private int idIncrement = 0;