Init -> constructor

This commit is contained in:
tonikelope 2016-09-29 21:09:31 +02:00
parent 46cd9e0f92
commit 18ac943842
4 changed files with 11 additions and 5 deletions

View File

@ -30,10 +30,11 @@ public final class ChunkUploader implements Runnable, SecureNotifiable {
private final Upload _upload; private final Upload _upload;
private volatile boolean _exit; private volatile boolean _exit;
private final Object _secure_notify_lock; private final Object _secure_notify_lock;
private boolean _notified=false; private boolean _notified;
public ChunkUploader(int id, Upload upload) public ChunkUploader(int id, Upload upload)
{ {
_notified = false;
_secure_notify_lock = new Object(); _secure_notify_lock = new Object();
_id = id; _id = id;
_upload = upload; _upload = upload;

View File

@ -15,9 +15,9 @@ public final class ClipboardSpy implements Runnable, ClipboardOwner, SecureNotif
private static final int SLEEP = 50; 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<ClipboardChangeObserver> _observers; private final ConcurrentLinkedQueue<ClipboardChangeObserver> _observers;
@ -28,6 +28,8 @@ public final class ClipboardSpy implements Runnable, ClipboardOwner, SecureNotif
public ClipboardSpy() { public ClipboardSpy() {
_sysClip = getDefaultToolkit().getSystemClipboard();
_notified = false;
_contents = null; _contents = null;
_secure_notify_lock = new Object(); _secure_notify_lock = new Object();
_observers = new ConcurrentLinkedQueue<>(); _observers = new ConcurrentLinkedQueue<>();

View File

@ -9,10 +9,11 @@ public final class ProgressMeter implements Runnable, SecureNotifiable
private final Transference _transference; private final Transference _transference;
private volatile boolean _exit; private volatile boolean _exit;
private final Object _secure_notify_lock; private final Object _secure_notify_lock;
private boolean _notified=false; private boolean _notified;
ProgressMeter(Transference transference) ProgressMeter(Transference transference)
{ {
_notified = false;
_secure_notify_lock = new Object(); _secure_notify_lock = new Object();
_transference = transference; _transference = transference;
_exit = false; _exit = false;

View File

@ -22,8 +22,10 @@ public final class StreamThrottlerSupervisor implements Runnable, SecureNotifiab
private final Object _secure_notify_lock; private final Object _secure_notify_lock;
private boolean _notified=false; private boolean _notified;
public StreamThrottlerSupervisor(int maxBytesPerSecInput, int maxBytesPerSecOutput, int slice_size) { public StreamThrottlerSupervisor(int maxBytesPerSecInput, int maxBytesPerSecOutput, int slice_size) {
_notified = false;
_secure_notify_lock = new Object(); _secure_notify_lock = new Object();