mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8336679: Add @implSpec for the default implementations in Process.waitFor()
Reviewed-by: bpb, jlu, liach
This commit is contained in:
parent
04e8cb8641
commit
4ea4d7c684
1 changed files with 14 additions and 8 deletions
|
@ -442,10 +442,13 @@ public abstract class Process {
|
||||||
* terminated and the timeout value is less than, or equal to, zero, then
|
* terminated and the timeout value is less than, or equal to, zero, then
|
||||||
* this method returns immediately with the value {@code false}.
|
* this method returns immediately with the value {@code false}.
|
||||||
*
|
*
|
||||||
* <p>The default implementation of this method polls the {@code exitValue}
|
* @implSpec
|
||||||
* to check if the process has terminated. Concrete implementations of this
|
* The default implementation of this method polls the {@code exitValue}
|
||||||
* class are strongly encouraged to override this method with a more
|
* to check if the process has terminated.
|
||||||
* efficient implementation.
|
*
|
||||||
|
* @implNote
|
||||||
|
* Concrete implementations of this class are strongly encouraged to
|
||||||
|
* override this method with a more efficient implementation.
|
||||||
*
|
*
|
||||||
* @param timeout the maximum time to wait
|
* @param timeout the maximum time to wait
|
||||||
* @param unit the time unit of the {@code timeout} argument
|
* @param unit the time unit of the {@code timeout} argument
|
||||||
|
@ -486,10 +489,13 @@ public abstract class Process {
|
||||||
* terminated and the duration is not positive, then
|
* terminated and the duration is not positive, then
|
||||||
* this method returns immediately with the value {@code false}.
|
* this method returns immediately with the value {@code false}.
|
||||||
*
|
*
|
||||||
* <p>The default implementation of this method polls the {@code exitValue}
|
* @implSpec
|
||||||
* to check if the process has terminated. Concrete implementations of this
|
* The default implementation of this method polls the {@code exitValue}
|
||||||
* class are strongly encouraged to override this method with a more
|
* to check if the process has terminated.
|
||||||
* efficient implementation.
|
*
|
||||||
|
* @implNote
|
||||||
|
* Concrete implementations of this class are strongly encouraged to
|
||||||
|
* override this method with a more efficient implementation.
|
||||||
*
|
*
|
||||||
* @param duration the maximum duration to wait; if not positive,
|
* @param duration the maximum duration to wait; if not positive,
|
||||||
* this method returns immediately.
|
* this method returns immediately.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue