Skip to content

Commit 47fe9ef

Browse files
author
Andrey Turbanov
committed
8289078: Make STARTTIME_ANY and STARTTIME_PROCESS_UNKNOWN fields static in ProcessHandleImpl
Reviewed-by: jpai, rriggs, bpb, naoto, iris
1 parent 62e1e79 commit 47fe9ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/java.base/share/classes/java/lang/ProcessHandleImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ final class ProcessHandleImpl implements ProcessHandle {
5454
/**
5555
* Default size of stack for reaper processes.
5656
*/
57-
private static long REAPER_DEFAULT_STACKSIZE = 128 * 1024;
57+
private static final long REAPER_DEFAULT_STACKSIZE = 128 * 1024;
5858

5959
/**
6060
* Return value from waitForProcessExit0 indicating the process is not a child.
@@ -218,10 +218,10 @@ public CompletableFuture<ProcessHandle> onExit() {
218218
* Typically, this is because the OS can not supply it.
219219
* The process is known to exist but not the exact start time.
220220
*/
221-
private final long STARTTIME_ANY = 0L;
221+
private static final long STARTTIME_ANY = 0L;
222222

223223
/* The start time of a Process that does not exist. */
224-
private final long STARTTIME_PROCESS_UNKNOWN = -1;
224+
private static final long STARTTIME_PROCESS_UNKNOWN = -1;
225225

226226
/**
227227
* Private constructor. Instances are created by the {@code get(long)} factory.

0 commit comments

Comments
 (0)