Kaydet (Commit) 8383055a authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Unused private fields

Change-Id: I69fd266df5cfb5392d1f2b5501bfb0b9e5f2cd83
üst 26012ae8
...@@ -34,9 +34,6 @@ class TestWorkAt implements TestIWorkAt { ...@@ -34,9 +34,6 @@ class TestWorkAt implements TestIWorkAt {
int _sync_counter; int _sync_counter;
int _async_counter; int _async_counter;
private Thread _sync_thread;
private Thread _async_thread;
private boolean _passedAsync = true; private boolean _passedAsync = true;
boolean _notified = false; boolean _notified = false;
...@@ -49,18 +46,12 @@ class TestWorkAt implements TestIWorkAt { ...@@ -49,18 +46,12 @@ class TestWorkAt implements TestIWorkAt {
if(_async_counter != MESSAGES) if(_async_counter != MESSAGES)
_passedAsync = false; _passedAsync = false;
if(_sync_thread == null)
_sync_thread = Thread.currentThread();
if(DEBUG) System.err.println("syncCall:" + _sync_counter + " " + _passedAsync + " " + Thread.currentThread()); if(DEBUG) System.err.println("syncCall:" + _sync_counter + " " + _passedAsync + " " + Thread.currentThread());
} }
public synchronized void asyncCall() throws Throwable { public synchronized void asyncCall() throws Throwable {
++ _async_counter; ++ _async_counter;
if(_async_thread == null)
_async_thread = Thread.currentThread();
if(DEBUG) System.err.println("asyncCall:" + _async_counter + " " + Thread.currentThread()); if(DEBUG) System.err.println("asyncCall:" + _async_counter + " " + Thread.currentThread());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment