We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9c53ca commit 4c4bb34Copy full SHA for 4c4bb34
src/main/java/de/javasocketapi/core/Connection.java
@@ -6,16 +6,12 @@
6
7
abstract class Connection {
8
9
- private final AtomicReference<UUID> connectionUUID;
+ private final AtomicReference<UUID> connectionUUID = new AtomicReference<>(UUID.randomUUID());
10
11
public AtomicReference<UUID> getConnectionUUID() {
12
return this.connectionUUID;
13
}
14
15
- {
16
- this.connectionUUID = new AtomicReference<>(UUID.randomUUID());
17
- }
18
-
19
public abstract void connect() throws IOException;
20
21
public abstract void disconnect() throws IOException;
0 commit comments