Skip to content

Commit 9eb8c30

Browse files
committed
Add Annotation 'Override' to com.iluwatar.reactor.app.AppClient.TcpLoggingClient.run method.
1 parent d915b66 commit 9eb8c30

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

reactor/src/main/java/com/iluwatar/reactor/app/AppClient.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class AppClient {
5151

5252
/**
5353
* App client entry.
54-
*
54+
*
5555
* @throws IOException if any I/O error occurs.
5656
*/
5757
public static void main(String[] args) throws IOException {
@@ -61,7 +61,7 @@ public static void main(String[] args) throws IOException {
6161

6262
/**
6363
* Starts the logging clients.
64-
*
64+
*
6565
* @throws IOException if any I/O error occurs.
6666
*/
6767
public void start() throws IOException {
@@ -106,7 +106,7 @@ static class TcpLoggingClient implements Runnable {
106106

107107
/**
108108
* Creates a new TCP logging client.
109-
*
109+
*
110110
* @param clientName the name of the client to be sent in logging requests.
111111
* @param serverPort the port on which client will send logging requests.
112112
*/
@@ -115,6 +115,7 @@ public TcpLoggingClient(String clientName, int serverPort) {
115115
this.serverPort = serverPort;
116116
}
117117

118+
@Override
118119
public void run() {
119120
try (Socket socket = new Socket(InetAddress.getLocalHost(), serverPort)) {
120121
OutputStream outputStream = socket.getOutputStream();
@@ -154,7 +155,7 @@ static class UdpLoggingClient implements Runnable {
154155

155156
/**
156157
* Creates a new UDP logging client.
157-
*
158+
*
158159
* @param clientName the name of the client to be sent in logging requests.
159160
* @param port the port on which client will send logging requests.
160161
* @throws UnknownHostException if localhost is unknown

0 commit comments

Comments
 (0)