Ignore:
Timestamp:
2021-09-12T02:10:25+02:00 (3 years ago)
Author:
Don-vip
Message:

global use of !Utils.isEmpty/isBlank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/DefaultProxySelector.java

    r14273 r18211  
    142142        httpProxySocketAddress = null;
    143143        if (proxyPolicy == ProxyPolicy.USE_HTTP_PROXY) {
    144             if (host != null && !host.trim().isEmpty() && port > 0) {
     144            if (!Utils.isBlank(host) && port > 0) {
    145145                httpProxySocketAddress = new InetSocketAddress(host, port);
    146146            } else {
     
    154154        socksProxySocketAddress = null;
    155155        if (proxyPolicy == ProxyPolicy.USE_SOCKS_PROXY) {
    156             if (host != null && !host.trim().isEmpty() && port > 0) {
     156            if (!Utils.isBlank(host) && port > 0) {
    157157                socksProxySocketAddress = new InetSocketAddress(host, port);
    158158            } else {
Note: See TracChangeset for help on using the changeset viewer.