Skip to content

Commit 4664d14

Browse files
committed
making static field private
adding private constructor
1 parent ff62a26 commit 4664d14

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/java/org/jgroups/ping/kube/test/util/FreePortFinder.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
public class FreePortFinder {
66

7-
public static int DEFAULT_PORT = 13256;
7+
private static final int DEFAULT_PORT = 13256;
8+
9+
private FreePortFinder() { }
810

911
public static int findFreePort() {
1012
try (ServerSocket socket = new ServerSocket(0)) {

0 commit comments

Comments
 (0)