Skip to content

Commit 7a87041

Browse files
turbanoffplummercj
authored andcommittedNov 15, 2021
8275385: Change nested classes in jdk.jdi to static nested classes
Reviewed-by: sspitsyn, amenkov, cjplummer
1 parent db0c8d5 commit 7a87041

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed
 

‎src/jdk.jdi/share/classes/com/sun/tools/example/debug/tty/Commands.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Commands {
5050
*/
5151
protected static final int LIST_LINE_LOOKBEHIND = 4;
5252

53-
abstract class AsyncExecution {
53+
abstract static class AsyncExecution {
5454
abstract void action();
5555

5656
AsyncExecution() {

‎src/jdk.jdi/share/classes/com/sun/tools/jdi/ConnectorImpl.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public String toString() {
146146
}
147147

148148
@SuppressWarnings("serial") // JDK implementation class
149-
abstract class ArgumentImpl implements Connector.Argument, Cloneable {
149+
abstract static class ArgumentImpl implements Connector.Argument, Cloneable {
150150
private String name;
151151
private String label;
152152
private String description;
@@ -275,7 +275,7 @@ public boolean booleanValue() {
275275
}
276276
}
277277

278-
class IntegerArgumentImpl extends ConnectorImpl.ArgumentImpl
278+
static class IntegerArgumentImpl extends ConnectorImpl.ArgumentImpl
279279
implements Connector.IntegerArgument {
280280
private static final long serialVersionUID = 763286081923797770L;
281281
private final int min;
@@ -376,7 +376,7 @@ public int min() {
376376
}
377377
}
378378

379-
class StringArgumentImpl extends ConnectorImpl.ArgumentImpl
379+
static class StringArgumentImpl extends ConnectorImpl.ArgumentImpl
380380
implements Connector.StringArgument {
381381
private static final long serialVersionUID = 7500484902692107464L;
382382
StringArgumentImpl(String name, String label, String description,
@@ -393,7 +393,7 @@ public boolean isValid(String value) {
393393
}
394394
}
395395

396-
class SelectedArgumentImpl extends ConnectorImpl.ArgumentImpl
396+
static class SelectedArgumentImpl extends ConnectorImpl.ArgumentImpl
397397
implements Connector.SelectedArgument {
398398
private static final long serialVersionUID = -5689584530908382517L;
399399
@SuppressWarnings("serial") // Type of field is not Serializable

‎src/jdk.jdi/share/classes/com/sun/tools/jdi/SDE.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 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
@@ -39,7 +39,7 @@ class SDE {
3939
/* for C capatibility */
4040
static final String NullString = null;
4141

42-
private class FileTableRecord {
42+
private static class FileTableRecord {
4343
int fileId;
4444
String sourceName;
4545
String sourcePath; // do not read - use accessor
@@ -72,7 +72,7 @@ String getSourcePath(ReferenceTypeImpl refType) {
7272
}
7373
}
7474

75-
private class LineTableRecord {
75+
private static class LineTableRecord {
7676
int jplsStart;
7777
int jplsEnd;
7878
int jplsLineInc;
@@ -82,7 +82,7 @@ private class LineTableRecord {
8282
int fileId;
8383
}
8484

85-
private class StratumTableRecord {
85+
private static class StratumTableRecord {
8686
String id;
8787
int fileIndex;
8888
int lineIndex;

0 commit comments

Comments
 (0)