public static String toHostAndPortString(String host, int port, int noPort) {
        // don't validation hostName
        // don't validation port range
        if (noPort == port) {
            return host;
        }
        return host + ':' + port;
    }
This API does not verification for input args.
agent-module/plugins-it/okhttp-it/src/test/java/com/navercorp/pinpoint/it/plugin/okhttp/OkHttpClient_3_0_0_to_3_3_x_IT.java