# HG changeset patch # User dtitov # Date 1570558680 25200 # Node ID dfe3d11378ccde8076e3e4189daeae91e9588e9e # Parent c16f3a24a6fc6ce4802a2b8a3348d31ea151c643 8199136: Dead code in src/jdk.jcmd/share/classes/sun/tools/common/ProcessArgumentMatcher.java Reviewed-by: dholmes, dtitov Contributed-by: mandrikov@gmail.com diff -r c16f3a24a6fc -r dfe3d11378cc src/jdk.jcmd/share/classes/sun/tools/common/ProcessArgumentMatcher.java --- a/src/jdk.jcmd/share/classes/sun/tools/common/ProcessArgumentMatcher.java Tue Oct 08 13:18:40 2019 -0400 +++ b/src/jdk.jcmd/share/classes/sun/tools/common/ProcessArgumentMatcher.java Tue Oct 08 11:18:00 2019 -0700 @@ -140,18 +140,14 @@ return vids; } - public Collection getVirtualMachineDescriptors(Class excludeClass) { + public Collection getVirtualMachineDescriptors() { if (singlePid != null) { return getSingleVMD(singlePid); } else { - return getVMDs(excludeClass, matchClass); + return getVMDs(null, matchClass); } } - public Collection getVirtualMachineDescriptors() { - return this.getVirtualMachineDescriptors(null); - } - public Collection getVirtualMachinePids(Class excludeClass) { if (singlePid != null) { // There is a bug in AttachProvider, when VM is debuggee-suspended it's not listed by the AttachProvider. @@ -162,7 +158,4 @@ } } - public Collection getVirtualMachinePids() { - return this.getVirtualMachinePids(null); - } }