diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-04-13 14:13:00 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-04-13 14:13:00 -0700 |
commit | 2ee5b4d82b7d5d1db3ce5e14a8b89cb8baa0760c (patch) | |
tree | 94f646adf93bddae89a0c32447e8cecd9b8f3d69 /core/java | |
parent | 0887540fa8cad30fa7688d3cd86904d61c9550c3 (diff) | |
parent | fb8390729192860066c081b11b2f58db4cba9924 (diff) | |
download | frameworks_base-2ee5b4d82b7d5d1db3ce5e14a8b89cb8baa0760c.zip frameworks_base-2ee5b4d82b7d5d1db3ce5e14a8b89cb8baa0760c.tar.gz frameworks_base-2ee5b4d82b7d5d1db3ce5e14a8b89cb8baa0760c.tar.bz2 |
Merge change 64 into donut
* changes:
Remove references to android.util.Config
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/net/Proxy.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/java/android/net/Proxy.java b/core/java/android/net/Proxy.java index 9f07c0a..66eefb2 100644 --- a/core/java/android/net/Proxy.java +++ b/core/java/android/net/Proxy.java @@ -30,6 +30,9 @@ import junit.framework.Assert; */ final public class Proxy { + // Set to true to enable extra debugging. + static final private boolean DEBUG = false; + static final public String PROXY_CHANGE_ACTION = "android.intent.action.PROXY_CHANGE"; @@ -49,7 +52,7 @@ final public class Proxy { if (host != null) { int i = host.indexOf(':'); if (i == -1) { - if (android.util.Config.DEBUG) { + if (DEBUG) { Assert.assertTrue(host.length() == 0); } return null; @@ -73,12 +76,12 @@ final public class Proxy { if (host != null) { int i = host.indexOf(':'); if (i == -1) { - if (android.util.Config.DEBUG) { + if (DEBUG) { Assert.assertTrue(host.length() == 0); } return -1; } - if (android.util.Config.DEBUG) { + if (DEBUG) { Assert.assertTrue(i < host.length()); } return Integer.parseInt(host.substring(i+1)); |