Make DnsNameResolver.cnameCache() public (#11520)

Motivation:

Users may want to clear the cache manually. For this it should be possible to access it first.

Modifications:

Change the visibility to public

Result:

Be able to clear the cache manually. Related to https://github.com/netty/netty/issues/11519
This commit is contained in:
Norman Maurer 2021-07-27 12:05:28 +02:00
parent f645982a94
commit 1b1df557bf

View File

@ -563,7 +563,7 @@ public class DnsNameResolver extends InetNameResolver {
/**
* Returns the {@link DnsCnameCache}.
*/
DnsCnameCache cnameCache() {
public DnsCnameCache cnameCache() {
return cnameCache;
}