Cleaning up History and Download Items

This commit is contained in:
anthony restaino 2017-06-09 20:39:51 -04:00
parent a02ac29057
commit 8a58fe9f8c
2 changed files with 10 additions and 17 deletions

View File

@ -11,21 +11,18 @@ import acr.browser.lightning.utils.Preconditions;
public class HistoryItem implements Comparable<HistoryItem> { public class HistoryItem implements Comparable<HistoryItem> {
// private variables @NonNull private String mUrl = "";
@NonNull
private String mUrl = "";
@NonNull @NonNull private String mTitle = "";
private String mTitle = "";
@NonNull @NonNull private String mFolder = "";
private String mFolder = "";
@Nullable @Nullable private Bitmap mBitmap = null;
private Bitmap mBitmap = null;
private int mImageId = 0; private int mImageId = 0;
private int mPosition = 0; private int mPosition = 0;
private boolean mIsFolder = false; private boolean mIsFolder = false;
public HistoryItem() {} public HistoryItem() {}

View File

@ -10,15 +10,11 @@ import acr.browser.lightning.utils.Preconditions;
public class DownloadItem implements Comparable<DownloadItem> { public class DownloadItem implements Comparable<DownloadItem> {
// private variables @NonNull private String mUrl = "";
@NonNull
private String mUrl = "";
@NonNull @NonNull private String mTitle = "";
private String mTitle = "";
@NonNull @NonNull private String mContentSize = "";
private String mContentSize = "";
public DownloadItem() {} public DownloadItem() {}
@ -83,7 +79,7 @@ public class DownloadItem implements Comparable<DownloadItem> {
DownloadItem that = (DownloadItem) object; DownloadItem that = (DownloadItem) object;
return this.mTitle.equals(that.mTitle) && this.mUrl.equals(that.mUrl) return this.mTitle.equals(that.mTitle) && this.mUrl.equals(that.mUrl)
&& this.mContentSize.equals(that.mContentSize); && this.mContentSize.equals(that.mContentSize);
} }
@Override @Override