Skip to content

Commit 21df412

Browse files
turbanoffSerguei Spitsyn
authored andcommitted
8275240: Change nested classes in jdk.attach to static nested classes
Reviewed-by: cjplummer, dholmes, sspitsyn
1 parent a16f2d0 commit 21df412

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

src/jdk.attach/aix/classes/sun/tools/attach/VirtualMachineImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ InputStream execute(String cmd, Object ... args) throws AgentLoadException, IOEx
233233
/*
234234
* InputStream for the socket connection to get target VM
235235
*/
236-
private class SocketInputStream extends InputStream {
236+
private static class SocketInputStream extends InputStream {
237237
int s;
238238

239239
public SocketInputStream(int s) {

src/jdk.attach/linux/classes/sun/tools/attach/VirtualMachineImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ InputStream execute(String cmd, Object ... args) throws AgentLoadException, IOEx
237237
/*
238238
* InputStream for the socket connection to get target VM
239239
*/
240-
private class SocketInputStream extends InputStream {
240+
private static class SocketInputStream extends InputStream {
241241
int s = -1;
242242

243243
public SocketInputStream(int s) {

src/jdk.attach/macosx/classes/sun/tools/attach/VirtualMachineImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ InputStream execute(String cmd, Object ... args) throws AgentLoadException, IOEx
233233
/*
234234
* InputStream for the socket connection to get target VM
235235
*/
236-
private class SocketInputStream extends InputStream {
236+
private static class SocketInputStream extends InputStream {
237237
int s;
238238

239239
public SocketInputStream(int s) {

src/jdk.attach/windows/classes/sun/tools/attach/VirtualMachineImpl.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -29,8 +29,6 @@
2929
import com.sun.tools.attach.AttachNotSupportedException;
3030
import com.sun.tools.attach.spi.AttachProvider;
3131

32-
import sun.tools.attach.HotSpotVirtualMachine;
33-
3432
import java.io.IOException;
3533
import java.io.InputStream;
3634
import java.util.Random;
@@ -141,7 +139,7 @@ InputStream execute(String cmd, Object ... args)
141139
}
142140

143141
// An InputStream based on a pipe to the target VM
144-
private class PipedInputStream extends InputStream {
142+
private static class PipedInputStream extends InputStream {
145143

146144
private long hPipe;
147145

0 commit comments

Comments
 (0)