Add Duration.wait(Object)
-------------------------
Key: WICKET-2285
URL: https://issues.apache.org/jira/browse/WICKET-2285
Project: Wicket
Issue Type: New Feature
Components: wicket
Reporter: Jonathan Locke
Assignee: Jonathan Locke
This is handy so you don't have to do object.wait(duration.getMilliseconds())
and have an ugly catch block in your code as well.
/**
* Wait for this duration on the given monitor
*
* @param object
* The monitor to wait on
*/
private void wait(Object object)
{
try
{
object.wait(getMilliseconds());
}
catch (InterruptedException e)
{
throw new RuntimeException(e);
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.