Mercurial > hg > openjdk > jdk9 > jaxp
changeset 1110:37cdb2871070
8178347: Process and ProcessHandle getPid method name inconsistency
Reviewed-by: alanb, bpb
author | rriggs |
---|---|
date | Wed, 12 Apr 2017 10:53:53 -0400 |
parents | 554196039897 |
children | 8d3febd5c9d8 |
files | test/javax/xml/jaxp/libs/jdk/testlibrary/ProcessTools.java |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/test/javax/xml/jaxp/libs/jdk/testlibrary/ProcessTools.java Fri Apr 07 08:05:40 2017 +0000 +++ b/test/javax/xml/jaxp/libs/jdk/testlibrary/ProcessTools.java Wed Apr 12 10:53:53 2017 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -256,7 +256,7 @@ * @return Process id */ public static long getProcessId() { - return ProcessHandle.current().getPid(); + return ProcessHandle.current().pid(); } /** @@ -542,8 +542,8 @@ } @Override - public long getPid() { - return p.getPid(); + public long pid() { + return p.pid(); } @Override