Loading core/java/android/net/Proxy.java +1 −6 Original line number Diff line number Diff line Loading @@ -16,8 +16,6 @@ package android.net; import org.apache.harmony.luni.platform.INetworkSystem; import org.apache.harmony.luni.platform.Platform; import org.apache.http.HttpHost; import android.content.ContentResolver; Loading @@ -44,8 +42,6 @@ final public class Proxy { static final public String PROXY_CHANGE_ACTION = "android.intent.action.PROXY_CHANGE"; static final private INetworkSystem NETIMPL = Platform.getNetworkSystem(); /** * Return the proxy host set by the user. * @param ctx A Context used to get the settings for the proxy host. Loading Loading @@ -169,8 +165,7 @@ final public class Proxy { if (host.equalsIgnoreCase("localhost")) { return true; } if (InetAddress.getByAddress(NETIMPL.ipStringToByteArray(host)) .isLoopbackAddress()) { if (InetAddress.getByName(host).isLoopbackAddress()) { return true; } } Loading Loading
core/java/android/net/Proxy.java +1 −6 Original line number Diff line number Diff line Loading @@ -16,8 +16,6 @@ package android.net; import org.apache.harmony.luni.platform.INetworkSystem; import org.apache.harmony.luni.platform.Platform; import org.apache.http.HttpHost; import android.content.ContentResolver; Loading @@ -44,8 +42,6 @@ final public class Proxy { static final public String PROXY_CHANGE_ACTION = "android.intent.action.PROXY_CHANGE"; static final private INetworkSystem NETIMPL = Platform.getNetworkSystem(); /** * Return the proxy host set by the user. * @param ctx A Context used to get the settings for the proxy host. Loading Loading @@ -169,8 +165,7 @@ final public class Proxy { if (host.equalsIgnoreCase("localhost")) { return true; } if (InetAddress.getByAddress(NETIMPL.ipStringToByteArray(host)) .isLoopbackAddress()) { if (InetAddress.getByName(host).isLoopbackAddress()) { return true; } } Loading