Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd69393

Browse files
committed
.
1 parent e47e4e7 commit bd69393

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lesson01/src/lesson01/exam02/server/CalculatorServer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ public CalculatorServer(int port) {
1212
this.port = port;
1313
}
1414

15-
public void service() throws Exception {
15+
@SuppressWarnings("resource")
16+
public void service() throws Exception {
1617
ServerSocket serverSocket = new ServerSocket(port);
1718
System.out.println("CalculatorServer startup:");
1819

0 commit comments

Comments
 (0)