mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-22 11:02:35 +01:00
Reorder the modifiers to comply with the Java Language Specification.
This commit is contained in:
parent
748c2babe9
commit
8bf2d996ea
@ -18,10 +18,10 @@ import static org.schabi.newpipe.BuildConfig.DEBUG;
|
||||
import static us.shandian.giga.get.DownloadMission.ERROR_HTTP_FORBIDDEN;
|
||||
|
||||
public class DownloadInitializer extends Thread {
|
||||
private final static String TAG = "DownloadInitializer";
|
||||
final static int mId = 0;
|
||||
private final static int RESERVE_SPACE_DEFAULT = 5 * 1024 * 1024;// 5 MiB
|
||||
private final static int RESERVE_SPACE_MAXIMUM = 150 * 1024 * 1024;// 150 MiB
|
||||
private static final String TAG = "DownloadInitializer";
|
||||
static final int mId = 0;
|
||||
private static final int RESERVE_SPACE_DEFAULT = 5 * 1024 * 1024;// 5 MiB
|
||||
private static final int RESERVE_SPACE_MAXIMUM = 150 * 1024 * 1024;// 150 MiB
|
||||
|
||||
private final DownloadMission mMission;
|
||||
private HttpURLConnection mConn;
|
||||
|
@ -11,10 +11,10 @@ import java.util.Objects;
|
||||
|
||||
public class CircularFileWriter extends SharpStream {
|
||||
|
||||
private final static int QUEUE_BUFFER_SIZE = 8 * 1024;// 8 KiB
|
||||
private final static int COPY_BUFFER_SIZE = 128 * 1024; // 128 KiB
|
||||
private final static int NOTIFY_BYTES_INTERVAL = 64 * 1024;// 64 KiB
|
||||
private final static int THRESHOLD_AUX_LENGTH = 15 * 1024 * 1024;// 15 MiB
|
||||
private static final int QUEUE_BUFFER_SIZE = 8 * 1024;// 8 KiB
|
||||
private static final int COPY_BUFFER_SIZE = 128 * 1024; // 128 KiB
|
||||
private static final int NOTIFY_BYTES_INTERVAL = 64 * 1024;// 64 KiB
|
||||
private static final int THRESHOLD_AUX_LENGTH = 15 * 1024 * 1024;// 15 MiB
|
||||
|
||||
private final OffsetChecker callback;
|
||||
|
||||
|
@ -30,9 +30,9 @@ public class DownloadManager {
|
||||
|
||||
enum NetworkState {Unavailable, Operating, MeteredOperating}
|
||||
|
||||
public final static int SPECIAL_NOTHING = 0;
|
||||
public final static int SPECIAL_PENDING = 1;
|
||||
public final static int SPECIAL_FINISHED = 2;
|
||||
public static final int SPECIAL_NOTHING = 0;
|
||||
public static final int SPECIAL_PENDING = 1;
|
||||
public static final int SPECIAL_FINISHED = 2;
|
||||
|
||||
public static final String TAG_AUDIO = "audio";
|
||||
public static final String TAG_VIDEO = "video";
|
||||
|
Loading…
Reference in New Issue
Block a user