Skip to content

Commit 5172920

Browse files
author
Grzegorz Piwowarek
committed
Remove unnecessary field initialization
1 parent 856be0a commit 5172920

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎core-java/src/main/java/com/baeldung/java/nio/selector/EchoClient.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
import java.nio.channels.SocketChannel;
77

88
public class EchoClient {
9-
private static SocketChannel client = null;
9+
private static SocketChannel client;
1010
private static ByteBuffer buffer;
11-
private static EchoClient instance = null;
11+
private static EchoClient instance;
1212

1313
public static EchoClient start() {
1414
if (instance == null)

0 commit comments

Comments
 (0)