1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-05 01:26:23 +00:00

Merge pull request #324 from DevFactory/release/redundant-modifiers-should-not-be-used-fix-1

Code quality fix - Redundant modifiers should not be used.
This commit is contained in:
Christian Schabesberger 2016-06-30 16:56:11 +02:00 committed by GitHub
commit 3b36b7f01b
2 changed files with 12 additions and 12 deletions

View File

@ -2,13 +2,13 @@ package us.shandian.giga.get;
public interface DownloadManager public interface DownloadManager
{ {
public static final int BLOCK_SIZE = 512 * 1024; int BLOCK_SIZE = 512 * 1024;
public int startMission(String url, String name, int threads); int startMission(String url, String name, int threads);
public void resumeMission(int id); void resumeMission(int id);
public void pauseMission(int id); void pauseMission(int id);
public void deleteMission(int id); void deleteMission(int id);
public DownloadMission getMission(int id); DownloadMission getMission(int id);
public int getCount(); int getCount();
public String getLocation(); String getLocation();
} }

View File

@ -20,12 +20,12 @@ public class DownloadMission
{ {
private static final String TAG = DownloadMission.class.getSimpleName(); private static final String TAG = DownloadMission.class.getSimpleName();
public static interface MissionListener { public interface MissionListener {
HashMap<MissionListener, Handler> handlerStore = new HashMap<>(); HashMap<MissionListener, Handler> handlerStore = new HashMap<>();
public void onProgressUpdate(long done, long total); void onProgressUpdate(long done, long total);
public void onFinish(); void onFinish();
public void onError(int errCode); void onError(int errCode);
} }
public static final int ERROR_SERVER_UNSUPPORTED = 206; public static final int ERROR_SERVER_UNSUPPORTED = 206;