diff options
Diffstat (limited to 'java/lang/String.java')
-rw-r--r-- | java/lang/String.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/java/lang/String.java b/java/lang/String.java index 7e823479..4cefed81 100644 --- a/java/lang/String.java +++ b/java/lang/String.java @@ -543,10 +543,8 @@ public final class String throw new UnsupportedOperationException("Use StringFactory instead."); } - // Android-removed: Unused package-private constructor String(char[] value, boolean share). - // BEGIN Android-added: Constructor for internal use. - // Not implemented in java as all calls are intercepted by the runtime. + // BEGIN Android-changed: Deprecated & unsupported as all calls are intercepted by the runtime. /** * Package private constructor * @@ -556,7 +554,7 @@ public final class String String(int offset, int count, char[] value) { throw new UnsupportedOperationException("Use StringFactory instead."); } - // END Android-added: Constructor for internal use. + // END Android-changed: Deprecated & unsupported as all calls are intercepted by the runtime. /** * Returns the length of this string. @@ -1561,6 +1559,12 @@ public final class String } } + // BEGIN Android-added: Native method to access char storage managed by runtime. + // TODO(b/67411061): This seems to be unused, see whether we can remove it. + @FastNative + private native int fastIndexOf(int c, int start); + // END Android-added: Native method to access char storage managed by runtime. + /** * Handles (rare) calls of indexOf with a supplementary character. */ |