Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
if (joinwait == -1) { t.join(); } else { t.join(joinwait); }
We don't need to use -1 as a special value, as join already has a special value of 0:
From Thread.join() javadoc:
"Waits at most millis milliseconds for this thread to die. A timeout of 0 means to wait forever."