mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-20 23:07:26 -04:00
use synchronized for methods that override synchronized methods
This commit is contained in:
@@ -24,7 +24,7 @@ class ProgressBufferedInputStream extends BufferedInputStream {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int read(@NonNull byte[] buffer, int byteOffset, int byteCount) throws IOException {
|
||||
public synchronized int read(@NonNull byte[] buffer, int byteOffset, int byteCount) throws IOException {
|
||||
if (progressListener != null) {
|
||||
currentBytes += byteCount;
|
||||
/* don't send every change to keep things efficient. 333333 bytes to keep all
|
||||
|
||||
@@ -256,7 +256,7 @@ public abstract class Downloader {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mark(int readlimit) {
|
||||
public synchronized void mark(int readlimit) {
|
||||
toWrap.mark(readlimit);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user