()
| 214 | |
| 215 | Runnable counting = new Runnable() { |
| 216 | @Override |
| 217 | public void run() { |
| 218 | while (!isDone()) { // doing long job |
| 219 | try { |
| 220 | Thread.sleep(delaySynchronous); |
| 221 | } // sleep one second |
| 222 | catch (InterruptedException ie) { |
| 223 | System.err.println("Thread interrupted."); |
| 224 | } |
| 225 | onProgress(); |
| 226 | } |
| 227 | onDone(); |
| 228 | } // end of run |
| 229 | }; |
| 230 | |
| 231 | public void longJob() { |
nothing calls this directly
no test coverage detected