Source:
<code>static OkHttpClient create(Logger logger) { OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient.Builder(); int readTimeout = 0; try { if (!System.getProperty(READ_TIMEOUT_SEC_PROPERTY, "").isEmpty()) { readTimeout = Integer.parseInt(System.getProperty(READ_TIMEOUT_SEC_PROPERTY)); } <START> } catch (NumberFormatException e) { <END> readTimeout = DEFAULT_READ_TIMEOUT_MILLISECONDS; } okHttpClientBuilder.connectTimeout(CONNECT_TIMEOUT_MILLISECONDS, TimeUnit.MILLISECONDS); okHttpClientBuilder.readTimeout(readTimeout, TimeUnit.MILLISECONDS); ConnectionSpec tls = new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS) .allEnabledTlsVersions() .allEnabledCipherSuites() .supportsTlsExtensions(true) .build(); okHttpClientBuilder.connectionSpecs(asList(tls, ConnectionSpec.CLEARTEXT)); X509TrustManager systemDefaultTrustManager = systemDefaultTrustManager(); okHttpClientBuilder.sslSocketFactory(systemDefaultSslSocketFactory(systemDefaultTrustManager, logger), systemDefaultTrustManager); final String proxyUser = System.getProperty("http.proxyUser", ""); if (!System.getProperty("http.proxyHost", "").isEmpty() && !proxyUser.isEmpty()) { okHttpClientBuilder.proxyAuthenticator((route, response) -> { if (response.request().header(PROXY_AUTHORIZATION) != null) { return null; } if (HttpURLConnection.HTTP_PROXY_AUTH == response.code()) { String credential = Credentials.basic(proxyUser, System.getProperty("http.proxyPassword")); return response.request().newBuilder().header(PROXY_AUTHORIZATION, credential).build(); } return null; }); } return okHttpClientBuilder.build(); }</code><technical_language>In case of bad number, I exception throw fail fast. Silently ignoring put user in a bad situation understand setting is account</technical_language>

Target:
static OkHttpClient create(Logger logger) { OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient.Builder(); int readTimeout = DEFAULT_READ_TIMEOUT_MILLISECONDS; if (!System.getProperty(READ_TIMEOUT_SEC_PROPERTY, "").isEmpty()) { readTimeout = Integer.parseInt(System.getProperty(READ_TIMEOUT_SEC_PROPERTY)); } okHttpClientBuilder.connectTimeout(CONNECT_TIMEOUT_MILLISECONDS, TimeUnit.MILLISECONDS); okHttpClientBuilder.readTimeout(readTimeout, TimeUnit.MILLISECONDS); ConnectionSpec tls = new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS) .allEnabledTlsVersions() .allEnabledCipherSuites() .supportsTlsExtensions(true) .build(); okHttpClientBuilder.connectionSpecs(asList(tls, ConnectionSpec.CLEARTEXT)); X509TrustManager systemDefaultTrustManager = systemDefaultTrustManager(); okHttpClientBuilder.sslSocketFactory(systemDefaultSslSocketFactory(systemDefaultTrustManager, logger), systemDefaultTrustManager); final String proxyUser = System.getProperty("http.proxyUser", ""); if (!System.getProperty("http.proxyHost", "").isEmpty() && !proxyUser.isEmpty()) { okHttpClientBuilder.proxyAuthenticator((route, response) -> { if (response.request().header(PROXY_AUTHORIZATION) != null) { return null; } if (HttpURLConnection.HTTP_PROXY_AUTH == response.code()) { String credential = Credentials.basic(proxyUser, System.getProperty("http.proxyPassword")); return response.request().newBuilder().header(PROXY_AUTHORIZATION, credential).build(); } return null; }); } return okHttpClientBuilder.build(); }