Skip to content

Commit 931b82d

Browse files
committed
add private constructor for util class
1 parent 355de37 commit 931b82d

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/main/java/com/alibaba/dcm/DnsCacheManipulator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,7 @@ public static void clearDnsCache() {
170170
throw new DnsCacheManipulatorException("Fail to clearDnsCache, cause: " + e.toString(), e);
171171
}
172172
}
173+
174+
private DnsCacheManipulator() {
175+
}
173176
}

src/main/java/com/alibaba/dcm/internal/InetAddressCacheUtil.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,7 @@ public static void clearInetAddressCache() throws NoSuchFieldException, IllegalA
174174
getCacheFiledOfInetAddress$CacheEntry().clear();
175175
}
176176
}
177+
178+
private InetAddressCacheUtil() {
179+
}
177180
}

0 commit comments

Comments
 (0)