44import android .os .Parcelable ;
55import android .text .TextUtils ;
66
7- import org .luaj .vm2 .ast .Str ;
8-
97/**
108 * Created by yanjiangbo on 2017/5/16.
119 */
@@ -15,10 +13,11 @@ public class LuaUpdateInfo implements Parcelable {
1513 private final String mVersion ;
1614 private final String mDownloadUrl ;
1715 private final String mManifestJson ;
16+
1817 private LuaUpdateInfo (Builder builder ) {
1918 this .mVersion = builder .mVersion ;
2019 this .mDownloadUrl = builder .mDownloadUrl ;
21- this .mManifestJson = builder .mManifestJson ;
20+ this .mManifestJson = builder .mManifestJson ;
2221 }
2322
2423 public String getDownloadUrl () {
@@ -51,6 +50,7 @@ public Builder setDownloadUrl(String downloadUrl) {
5150 }
5251 return this ;
5352 }
53+
5454 public Builder setManifestJson (String manifestJson ) {
5555 if (!TextUtils .isEmpty (manifestJson )) {
5656 this .mManifestJson = manifestJson ;
@@ -79,7 +79,7 @@ public void writeToParcel(Parcel dest, int flags) {
7979 protected LuaUpdateInfo (Parcel in ) {
8080 this .mVersion = in .readString ();
8181 this .mDownloadUrl = in .readString ();
82- this .mManifestJson = in .readString ();
82+ this .mManifestJson = in .readString ();
8383 }
8484
8585 public static final Parcelable .Creator <LuaUpdateInfo > CREATOR = new Parcelable .Creator <LuaUpdateInfo >() {
@@ -104,7 +104,7 @@ public boolean equals(Object obj) {
104104 if (obj == null ) {
105105 return super .equals (obj );
106106 }
107- if (!(obj instanceof ServiceQueryAdsInfo )) {
107+ if (!(obj instanceof LuaUpdateInfo )) {
108108 return super .equals (obj );
109109 }
110110 LuaUpdateInfo luaUpdateInfo = (LuaUpdateInfo ) obj ;
0 commit comments