diff --git a/src/megabasterd/ChunkUploader.java b/src/megabasterd/ChunkUploader.java index 01feec91e..74c4a24c8 100644 --- a/src/megabasterd/ChunkUploader.java +++ b/src/megabasterd/ChunkUploader.java @@ -30,10 +30,11 @@ public final class ChunkUploader implements Runnable, SecureNotifiable { private final Upload _upload; private volatile boolean _exit; private final Object _secure_notify_lock; - private boolean _notified=false; + private boolean _notified; public ChunkUploader(int id, Upload upload) { + _notified = false; _secure_notify_lock = new Object(); _id = id; _upload = upload; diff --git a/src/megabasterd/ClipboardSpy.java b/src/megabasterd/ClipboardSpy.java index 146fdb494..4fb2899fc 100644 --- a/src/megabasterd/ClipboardSpy.java +++ b/src/megabasterd/ClipboardSpy.java @@ -15,9 +15,9 @@ public final class ClipboardSpy implements Runnable, ClipboardOwner, SecureNotif private static final int SLEEP = 50; - private final Clipboard _sysClip = getDefaultToolkit().getSystemClipboard(); + private final Clipboard _sysClip; - private boolean _notified=false; + private boolean _notified; private final ConcurrentLinkedQueue _observers; @@ -28,6 +28,8 @@ public final class ClipboardSpy implements Runnable, ClipboardOwner, SecureNotif public ClipboardSpy() { + _sysClip = getDefaultToolkit().getSystemClipboard(); + _notified = false; _contents = null; _secure_notify_lock = new Object(); _observers = new ConcurrentLinkedQueue<>(); diff --git a/src/megabasterd/ProgressMeter.java b/src/megabasterd/ProgressMeter.java index 5eb0d8e5d..4c6a7b2e6 100644 --- a/src/megabasterd/ProgressMeter.java +++ b/src/megabasterd/ProgressMeter.java @@ -9,10 +9,11 @@ public final class ProgressMeter implements Runnable, SecureNotifiable private final Transference _transference; private volatile boolean _exit; private final Object _secure_notify_lock; - private boolean _notified=false; + private boolean _notified; ProgressMeter(Transference transference) { + _notified = false; _secure_notify_lock = new Object(); _transference = transference; _exit = false; diff --git a/src/megabasterd/StreamThrottlerSupervisor.java b/src/megabasterd/StreamThrottlerSupervisor.java index c7a592e97..82c17aeb6 100644 --- a/src/megabasterd/StreamThrottlerSupervisor.java +++ b/src/megabasterd/StreamThrottlerSupervisor.java @@ -22,8 +22,10 @@ public final class StreamThrottlerSupervisor implements Runnable, SecureNotifiab private final Object _secure_notify_lock; - private boolean _notified=false; + private boolean _notified; + public StreamThrottlerSupervisor(int maxBytesPerSecInput, int maxBytesPerSecOutput, int slice_size) { + _notified = false; _secure_notify_lock = new Object();