8275240: Change nested classes in jdk.attach to static nested classes

Reviewed-by: cjplummer, dholmes, sspitsyn
This commit is contained in:
Andrey Turbanov 2021-10-14 23:12:05 +00:00 committed by Serguei Spitsyn
parent a16f2d0a3c
commit 21df412bd9
4 changed files with 5 additions and 7 deletions
src/jdk.attach
aix/classes/sun/tools/attach
linux/classes/sun/tools/attach
macosx/classes/sun/tools/attach
windows/classes/sun/tools/attach

@ -233,7 +233,7 @@ public class VirtualMachineImpl extends HotSpotVirtualMachine {
/* /*
* InputStream for the socket connection to get target VM * InputStream for the socket connection to get target VM
*/ */
private class SocketInputStream extends InputStream { private static class SocketInputStream extends InputStream {
int s; int s;
public SocketInputStream(int s) { public SocketInputStream(int s) {

@ -237,7 +237,7 @@ public class VirtualMachineImpl extends HotSpotVirtualMachine {
/* /*
* InputStream for the socket connection to get target VM * InputStream for the socket connection to get target VM
*/ */
private class SocketInputStream extends InputStream { private static class SocketInputStream extends InputStream {
int s = -1; int s = -1;
public SocketInputStream(int s) { public SocketInputStream(int s) {

@ -233,7 +233,7 @@ public class VirtualMachineImpl extends HotSpotVirtualMachine {
/* /*
* InputStream for the socket connection to get target VM * InputStream for the socket connection to get target VM
*/ */
private class SocketInputStream extends InputStream { private static class SocketInputStream extends InputStream {
int s; int s;
public SocketInputStream(int s) { public SocketInputStream(int s) {

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -29,8 +29,6 @@ import com.sun.tools.attach.AgentLoadException;
import com.sun.tools.attach.AttachNotSupportedException; import com.sun.tools.attach.AttachNotSupportedException;
import com.sun.tools.attach.spi.AttachProvider; import com.sun.tools.attach.spi.AttachProvider;
import sun.tools.attach.HotSpotVirtualMachine;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.util.Random; import java.util.Random;
@ -141,7 +139,7 @@ public class VirtualMachineImpl extends HotSpotVirtualMachine {
} }
// An InputStream based on a pipe to the target VM // An InputStream based on a pipe to the target VM
private class PipedInputStream extends InputStream { private static class PipedInputStream extends InputStream {
private long hPipe; private long hPipe;