ProcessHandleImpl.STARTTIME_PROCESS_UNKNOWN and STARTTIME_PROCESS_UNKNOWN
Andrey Turbanov
turbanoff at gmail.com
Wed Jun 15 18:58:10 UTC 2022
Hello.
I recently found a couple of unused constants in
java.lang.ProcessHandleImpl class.
They seem to serve only documentation purposes. I'm I right?
If so, I think it's better to remove them or at least make them static.
/* The start time should match any value.
* Typically, this is because the OS can not supply it.
* The process is known to exist but not the exact start time.
*/
private final long STARTTIME_ANY = 0L;
/* The start time of a Process that does not exist. */
private final long STARTTIME_PROCESS_UNKNOWN = -1;
Andrey Turbanov
More information about the core-libs-dev
mailing list