Change visibility of InetSocketAddressParser.

Original Pull Request #2227
Closes #2226
This commit is contained in:
Peter-Josef Meisch 2022-07-17 20:15:03 +02:00 committed by GitHub
parent 1754f59e70
commit 26a2f54c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ import org.springframework.util.StringUtils;
* @author Mark Paluch * @author Mark Paluch
* @since 3.2 * @since 3.2
*/ */
class InetSocketAddressParser { public class InetSocketAddressParser {
/** /**
* Parse a host and port string into a {@link InetSocketAddress}. * Parse a host and port string into a {@link InetSocketAddress}.
@ -36,7 +36,7 @@ class InetSocketAddressParser {
* @return a {@link InetSocketAddress} that is unresolved to avoid DNS lookups. * @return a {@link InetSocketAddress} that is unresolved to avoid DNS lookups.
* @see InetSocketAddress#createUnresolved(String, int) * @see InetSocketAddress#createUnresolved(String, int)
*/ */
static InetSocketAddress parse(String hostPortString, int defaultPort) { public static InetSocketAddress parse(String hostPortString, int defaultPort) {
Assert.notNull(hostPortString, "HostPortString must not be null"); Assert.notNull(hostPortString, "HostPortString must not be null");
String host; String host;