mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-10-05 18:43:24 -04:00
use synchronized for methods that override synchronized methods
This commit is contained in:
1 parent
a02ba42cf9
commit
43a809490c
2 files changed
+2
-2
No files matched your search
@@ -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