Skip to content

Commit ff86e79

Browse files
committed
Minor change to JavaDoc
1 parent 5fe08a5 commit ff86e79

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/main/java/server/ServerListenerManager.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package server;
22

33
import listener_references.Command;
4-
import listener_references.ServerConnection;
4+
import listener_references.Connection;
55
import listener_references.Message;
6+
import listener_references.ServerConnection;
67
import listeners.CommandListener;
7-
import listeners.ServerConnectionListener;
88
import listeners.MessageListener;
9+
import listeners.ServerConnectionListener;
910

1011
import java.util.ArrayList;
1112
import java.util.List;
@@ -106,14 +107,14 @@ public synchronized void raiseMessageEvent(Message message) {
106107
}
107108

108109
/**
109-
* Runs each of the {@link ServerConnectionListener}s with the {@code connection} and {@code event} as input
110+
* Runs each of the {@link ServerConnectionListener}s with the {@code connection} and {@code Event} as input
110111
* @param connection the {@link ServerConnection} to pass to each of the listeners
111-
* @param event the {@link ServerConnection.event} associated with the connection
112+
* @param event the {@link Connection.Event} associated with the connection
112113
*/
113-
public synchronized void raiseConnectionEvent(ServerConnection connection, ServerConnection.event event) {
114+
public synchronized void raiseConnectionEvent(ServerConnection connection, Connection.Event event) {
114115
connectionListeners.forEach(listener -> executor.submit((Callable<Void>) () -> {
115-
if (event == ServerConnection.event.CONNECTED) listener.onConnectionCreated(connection);
116-
if (event == ServerConnection.event.REMOVED) listener.onConnectionRemoved(connection);
116+
if (event == Connection.Event.CONNECTED) listener.onConnectionCreated(connection);
117+
if (event == Connection.Event.REMOVED) listener.onConnectionRemoved(connection);
117118
return null;
118119
}));
119120
}

0 commit comments

Comments
 (0)