(long gap, int times)
| 430 | } |
| 431 | |
| 432 | private static void sleep(long gap, int times) { |
| 433 | try { |
| 434 | for (int i = 0; i < times; ++i) { |
| 435 | Thread.sleep(gap); |
| 436 | System.out.println("-- sleep " + i); |
| 437 | } |
| 438 | } catch (InterruptedException e) { |
| 439 | e.printStackTrace(); |
| 440 | } |
| 441 | } |
| 442 | |
| 443 | private static void log(String msg) { |
| 444 | logger.info("======================================== {} ========================================", msg); |
no outgoing calls
no test coverage detected