我最近在Android的Parcel类中发现了一个非常愚蠢的实现(至少从我的角度来看是这样)。假设我有一个像这样的简单类classFooimplementsParcelable{privateString[]bars;//othermemberspublicindescribeContents(){return0;}publicvoidwriteToParcel(Parceldest,intflags){dest.writeStringArray(bars);//parcelothers}privateFoo(Parcelsource){source.readStringArray(b