You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for ( final Future< Void > f : futures )
{
try
{
f.get();
}
catch ( final InterruptedException e )
{
e.printStackTrace();
}
catch ( final ExecutionException e )
{
e.printStackTrace();
}
}
This should be changed from e.printStackTrace() to something meaningful.
InterruptedException should Thread.currentThread().interrupt() and end method as fast as possible.
What should we do with ExecutionException? Just declare and throw it?
The text was updated successfully, but these errors were encountered:
In several places we have code like this:
This should be changed from
e.printStackTrace()
to something meaningful.InterruptedException
shouldThread.currentThread().interrupt()
and end method as fast as possible.What should we do with
ExecutionException
? Just declare and throw it?The text was updated successfully, but these errors were encountered: