174 |
|
java.util.Date d = new java.util.Date(); |
175 |
|
assertTrue(c.awaitUntil(new java.util.Date(d.getTime() + 2 * LONG_DELAY_MS))); |
176 |
|
break; |
177 |
+ |
default: |
178 |
+ |
throw new AssertionError(); |
179 |
|
} |
180 |
|
} |
181 |
|
|
957 |
|
assertFalse(c.await(timeoutMillis, MILLISECONDS)); |
958 |
|
assertTrue(millisElapsedSince(startTime) >= timeoutMillis); |
959 |
|
lock.writeLock().unlock(); |
960 |
< |
} catch (InterruptedException e) { |
959 |
< |
threadUnexpectedException(e); |
960 |
< |
} |
960 |
> |
} catch (InterruptedException fail) { threadUnexpectedException(fail); } |
961 |
|
} |
962 |
|
|
963 |
|
/** |
977 |
|
assertFalse(c.awaitUntil(new java.util.Date(d.getTime() + timeoutMillis))); |
978 |
|
assertTrue(millisElapsedSince(startTime) >= timeoutMillis); |
979 |
|
lock.writeLock().unlock(); |
980 |
< |
} catch (InterruptedException e) { |
981 |
< |
threadUnexpectedException(e); |
982 |
< |
} |
980 |
> |
} catch (InterruptedException fail) { threadUnexpectedException(fail); } |
981 |
|
} |
982 |
|
|
983 |
|
/** |