@@ -62,8 +62,8 @@ public final class NetHttpTransport extends HttpTransport {
62
62
private static Proxy defaultProxy () {
63
63
return new Proxy (
64
64
Proxy .Type .HTTP , new InetSocketAddress (
65
- System .getProperties (). getProperty ("https.proxyHost" ),
66
- Integer .parseInt (System .getProperties (). getProperty ("https.proxyPort" ))));
65
+ System .getProperty ("https.proxyHost" ),
66
+ Integer .parseInt (System .getProperty ("https.proxyPort" ))));
67
67
}
68
68
69
69
/**
@@ -130,7 +130,7 @@ public NetHttpTransport() {
130
130
131
131
private ConnectionFactory getConnectionFactory (ConnectionFactory connectionFactory ) {
132
132
if (connectionFactory == null ) {
133
- if (System .getProperties (). getProperty ("com.google .api.client.should_use_proxy" ) != null ) {
133
+ if (System .getProperty ("com.api.client.should_use_proxy" ) != null ) {
134
134
return new DefaultConnectionFactory (defaultProxy ());
135
135
}
136
136
return new DefaultConnectionFactory ();
@@ -329,7 +329,7 @@ public Builder setHostnameVerifier(HostnameVerifier hostnameVerifier) {
329
329
330
330
/** Returns a new instance of {@link NetHttpTransport} based on the options. */
331
331
public NetHttpTransport build () {
332
- if (System .getProperties (). getProperty ("com.google.api.client.should_use_proxy" ) != null ) {
332
+ if (System .getProperty ("com.google.api.client.should_use_proxy" ) != null ) {
333
333
setProxy (defaultProxy ());
334
334
}
335
335
return this .proxy == null
0 commit comments