From a44518a757c4e0484e966b39dabb7fe1da332d78 Mon Sep 17 00:00:00 2001 From: Faisal Hameed Date: Fri, 24 Jun 2016 05:44:09 +0500 Subject: [PATCH] Fixing squid:S2333 - Redundant modifiers should not be used. --- .../us/shandian/giga/get/DownloadManager.java | 16 ++++++++-------- .../us/shandian/giga/get/DownloadMission.java | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/us/shandian/giga/get/DownloadManager.java b/app/src/main/java/us/shandian/giga/get/DownloadManager.java index e1ff8e297..6090e1908 100644 --- a/app/src/main/java/us/shandian/giga/get/DownloadManager.java +++ b/app/src/main/java/us/shandian/giga/get/DownloadManager.java @@ -2,13 +2,13 @@ package us.shandian.giga.get; 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); - public void resumeMission(int id); - public void pauseMission(int id); - public void deleteMission(int id); - public DownloadMission getMission(int id); - public int getCount(); - public String getLocation(); + int startMission(String url, String name, int threads); + void resumeMission(int id); + void pauseMission(int id); + void deleteMission(int id); + DownloadMission getMission(int id); + int getCount(); + String getLocation(); } diff --git a/app/src/main/java/us/shandian/giga/get/DownloadMission.java b/app/src/main/java/us/shandian/giga/get/DownloadMission.java index bbcee7e94..44269160a 100644 --- a/app/src/main/java/us/shandian/giga/get/DownloadMission.java +++ b/app/src/main/java/us/shandian/giga/get/DownloadMission.java @@ -20,12 +20,12 @@ public class DownloadMission { private static final String TAG = DownloadMission.class.getSimpleName(); - public static interface MissionListener { + public interface MissionListener { HashMap handlerStore = new HashMap<>(); - public void onProgressUpdate(long done, long total); - public void onFinish(); - public void onError(int errCode); + void onProgressUpdate(long done, long total); + void onFinish(); + void onError(int errCode); } public static final int ERROR_SERVER_UNSUPPORTED = 206;