@@ -68,8 +68,8 @@ protected LoyaltyCard(Parcel in) {
6868 balanceType = (Currency ) in .readValue (Currency .class .getClassLoader ());
6969 cardId = in .readString ();
7070 barcodeId = in .readString ();
71- String barcodeTypeName = in .readString ();
72- barcodeType = barcodeTypeName != null && ! barcodeTypeName .isEmpty () ? CatimaBarcode .fromName (barcodeTypeName ) : null ;
71+ String tmpBarcodeType = in .readString ();
72+ barcodeType = ! tmpBarcodeType .isEmpty () ? CatimaBarcode .fromName (tmpBarcodeType ) : null ;
7373 int tmpHeaderColor = in .readInt ();
7474 headerColor = tmpHeaderColor != -1 ? tmpHeaderColor : null ;
7575 starStatus = in .readInt ();
@@ -97,18 +97,6 @@ public void writeToParcel(Parcel parcel, int i) {
9797 parcel .writeInt (archiveStatus );
9898 }
9999
100- public static final Creator <LoyaltyCard > CREATOR = new Creator <LoyaltyCard >() {
101- @ Override
102- public LoyaltyCard createFromParcel (Parcel in ) {
103- return new LoyaltyCard (in );
104- }
105-
106- @ Override
107- public LoyaltyCard [] newArray (int size ) {
108- return new LoyaltyCard [size ];
109- }
110- };
111- }
112100 public static LoyaltyCard toLoyaltyCard (Cursor cursor ) {
113101 int id = cursor .getInt (cursor .getColumnIndexOrThrow (DBHelper .LoyaltyCardDbIds .ID ));
114102 String store = cursor .getString (cursor .getColumnIndexOrThrow (DBHelper .LoyaltyCardDbIds .STORE ));
@@ -215,4 +203,4 @@ public LoyaltyCard[] newArray(int size) {
215203 return new LoyaltyCard [size ];
216204 }
217205 };
218- }
206+ }
0 commit comments