OSDN Git Service

Hide AssetInputStream.getAssetInt.
authorNarayan Kamath <narayan@google.com>
Fri, 10 Jan 2014 17:32:28 +0000 (17:32 +0000)
committerNarayan Kamath <narayan@google.com>
Tue, 14 Jan 2014 09:31:29 +0000 (09:31 +0000)
It returns a pointer to a private data structure, so there's
no sensible use for it. Also, the emergence of 64 bit processors
means that the return value isn't wide enough to represent
values in the native heap.

Change-Id: If02d42a528b9d90f11cb25c3342404b7d5f7b625

api/current.txt
core/java/android/content/res/AssetManager.java

index 241c540..ef30d5b 100644 (file)
@@ -7836,7 +7836,6 @@ package android.content.res {
   public final class AssetManager.AssetInputStream extends java.io.InputStream {
     method public final int available() throws java.io.IOException;
     method public final void close() throws java.io.IOException;
-    method public final int getAssetInt();
     method public final void mark(int);
     method public final boolean markSupported();
     method public final int read() throws java.io.IOException;
index e53486d..5b0b78c 100644 (file)
@@ -536,6 +536,9 @@ public final class AssetManager {
     }
     
     public final class AssetInputStream extends InputStream {
+        /**
+         * @hide
+         */
         public final int getAssetInt() {
             return mAsset;
         }