OSDN Git Service

Merge "DO NOT MERGE Revert "WTF Logging for catching memory issue in Parcel"" into...
[android-x86/frameworks-base.git] / core / java / android / os / Parcel.java
index f4a9ef6..68a81ca 100644 (file)
@@ -430,13 +430,7 @@ public final class Parcel {
      * @param size The new number of bytes in the Parcel.
      */
     public final void setDataSize(int size) {
-        // STOPSHIP: Try/catch for exception is for temporary debug. Remove once bug resolved
-        try {
-            updateNativeSize(nativeSetDataSize(mNativePtr, size));
-        } catch (IllegalArgumentException iae) {
-            Log.e(TAG,"Caught Exception representing a known bug in Parcel",iae);
-            Log.wtfStack(TAG, "This flow is using SetDataSize incorrectly");
-        }
+        updateNativeSize(nativeSetDataSize(mNativePtr, size));
     }
 
     /**