summaryrefslogtreecommitdiffstats
path: root/core/java/android/net
diff options
context:
space:
mode:
authorBob Lee <crazybob@google.com>2009-07-10 14:13:37 -0700
committerBob Lee <crazybob@google.com>2009-07-10 14:13:37 -0700
commitc8e852da32cd91b708ee53d69fbe9bba2e08ffec (patch)
treea583b5707419183669941f60eb526d9d2beb1134 /core/java/android/net
parent9090ff7937d20bed24ac83eec6853c2ed258ef26 (diff)
parentad94a98364c02be7a0c5317cad9d57ecec964f80 (diff)
downloadframeworks_base-c8e852da32cd91b708ee53d69fbe9bba2e08ffec.zip
frameworks_base-c8e852da32cd91b708ee53d69fbe9bba2e08ffec.tar.gz
frameworks_base-c8e852da32cd91b708ee53d69fbe9bba2e08ffec.tar.bz2
resolved conflicts for merge of ad94a983 to master
Diffstat (limited to 'core/java/android/net')
-rw-r--r--core/java/android/net/Uri.java21
1 files changed, 12 insertions, 9 deletions
diff --git a/core/java/android/net/Uri.java b/core/java/android/net/Uri.java
index 08bd67e..a490f73 100644
--- a/core/java/android/net/Uri.java
+++ b/core/java/android/net/Uri.java
@@ -105,6 +105,18 @@ public abstract class Uri implements Parcelable, Comparable<Uri> {
private static final String LOG = Uri.class.getSimpleName();
/**
+ * NOTE: EMPTY accesses this field during its own initialization, so this
+ * field *must* be initialized first, or else EMPTY will see a null value!
+ *
+ * Placeholder for strings which haven't been cached. This enables us
+ * to cache null. We intentionally create a new String instance so we can
+ * compare its identity and there is no chance we will confuse it with
+ * user data.
+ */
+ @SuppressWarnings("RedundantStringConstructorCall")
+ private static final String NOT_CACHED = new String("NOT CACHED");
+
+ /**
* The empty URI, equivalent to "".
*/
public static final Uri EMPTY = new HierarchicalUri(null, Part.NULL,
@@ -350,15 +362,6 @@ public abstract class Uri implements Parcelable, Comparable<Uri> {
private final static int NOT_CALCULATED = -2;
/**
- * Placeholder for strings which haven't been cached. This enables us
- * to cache null. We intentionally create a new String instance so we can
- * compare its identity and there is no chance we will confuse it with
- * user data.
- */
- @SuppressWarnings("RedundantStringConstructorCall")
- private static final String NOT_CACHED = new String("NOT CACHED");
-
- /**
* Error message presented when a user tries to treat an opaque URI as
* hierarchical.
*/