Type inference. Use autoboxing for int

This commit is contained in:
Anosh D. Ullenius
2022-06-17 20:33:00 +02:00
parent 258d85b934
commit 03ed2f52d1
4 changed files with 4 additions and 4 deletions
@@ -218,7 +218,7 @@ public final class ProxyUtil {
log.info("Using no proxy");
app.conn = new Connector();
} else {
int pp = StringUtil.isBlank(port) ? 80 : Integer.valueOf(port);
int pp = StringUtil.isBlank(port) ? 80 : Integer.parseInt(port);
log.info("Using proxy", "host", host, "port", pp, "haveCreds", haveCreds);
app.conn = new Connector(new Proxy(Proxy.Type.HTTP, new InetSocketAddress(host, pp)));
}