Fixing pmd:RedundantFieldInitializer - Redundant Field Initializer.

This commit is contained in:
Faisal Hameed 2016-06-24 05:37:44 +05:00
parent 25a776cc93
commit dd2398efad
17 changed files with 45 additions and 45 deletions

View file

@ -34,23 +34,23 @@ public class DownloadMission
public String name = "";
public String url = "";
public String location = "";
public long blocks = 0;
public long length = 0;
public long done = 0;
public long blocks;
public long length;
public long done;
public int threadCount = 3;
public int finishCount = 0;
public int finishCount;
public ArrayList<Long> threadPositions = new ArrayList<Long>();
public HashMap<Long, Boolean> blockState = new HashMap<Long, Boolean>();
public boolean running = false;
public boolean finished = false;
public boolean fallback = false;
public boolean running;
public boolean finished;
public boolean fallback;
public int errCode = -1;
public long timestamp = 0;
public long timestamp;
public transient boolean recovered = false;
public transient boolean recovered;
private transient ArrayList<WeakReference<MissionListener>> mListeners = new ArrayList<WeakReference<MissionListener>>();
private transient boolean mWritingToFile = false;
private transient boolean mWritingToFile;
public boolean isBlockPreserved(long block) {
return blockState.containsKey(block) ? blockState.get(block) : false;

View file

@ -292,7 +292,7 @@ public class MissionAdapter extends RecyclerView.Adapter<MissionAdapter.ViewHold
public long lastTimeStamp = -1;
public long lastDone = -1;
public int colorId = 0;
public int colorId;
public ViewHolder(View v) {
super(v);

View file

@ -9,7 +9,7 @@ import android.graphics.drawable.Drawable;
public class ProgressDrawable extends Drawable
{
private float mProgress = 0.0f;
private float mProgress;
private int mBackgroundColor, mForegroundColor;
public ProgressDrawable(Context context, int background, int foreground) {

View file

@ -32,7 +32,7 @@ public abstract class MissionsFragment extends Fragment
private DownloadManagerService.DMBinder mBinder;
private SharedPreferences mPrefs;
private boolean mLinear = false;
private boolean mLinear;
private MenuItem mSwitch;
private RecyclerView mList;