Skip to content

Commit 4e9dd4b

Browse files
turbanoffMandy Chung
authored andcommitted
8275384: Change nested classes in jdk.jconsole to static nested classes
Reviewed-by: alanb, sspitsyn, mchung
1 parent 0961de4 commit 4e9dd4b

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

src/jdk.jconsole/share/classes/sun/tools/jconsole/MaximizableInternalFrame.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2006, 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
@@ -189,7 +189,7 @@ public void setTitle(String title) {
189189
}
190190

191191

192-
private class FixedMenuBarLayout extends BoxLayout {
192+
private static class FixedMenuBarLayout extends BoxLayout {
193193
public FixedMenuBarLayout(Container target, int axis) {
194194
super(target, axis);
195195
}

src/jdk.jconsole/share/classes/sun/tools/jconsole/MemoryTab.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 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
@@ -438,7 +438,7 @@ public void actionPerformed(ActionEvent ev) {
438438
}
439439
}
440440

441-
private class PoolPlotter extends Plotter {
441+
private static class PoolPlotter extends Plotter {
442442
ObjectName objectName;
443443
String name;
444444
boolean isHeap;

src/jdk.jconsole/share/classes/sun/tools/jconsole/ThreadTab.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 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
@@ -619,7 +619,7 @@ public Dimension getPreferredSize() {
619619
}
620620
}
621621

622-
private class PromptingTextField extends JTextField implements FocusListener {
622+
private static class PromptingTextField extends JTextField implements FocusListener {
623623
private String prompt;
624624
boolean promptRemoved = false;
625625
Color fg;

src/jdk.jconsole/share/classes/sun/tools/jconsole/inspector/XMBeanAttributes.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 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
@@ -865,7 +865,7 @@ public boolean stopCellEditing() {
865865
}
866866
}
867867

868-
class MaximizedCellRenderer extends DefaultTableCellRenderer {
868+
static class MaximizedCellRenderer extends DefaultTableCellRenderer {
869869
Component comp;
870870
MaximizedCellRenderer(Component comp) {
871871
this.comp = comp;
@@ -888,7 +888,7 @@ public Component getComponent() {
888888
}
889889
}
890890

891-
class ZoomedCell {
891+
static class ZoomedCell {
892892
TableCellRenderer minRenderer;
893893
MaximizedCellRenderer maxRenderer;
894894
int minHeight;

src/jdk.jconsole/share/classes/sun/tools/jconsole/inspector/XMBeanNotifications.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2004, 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
@@ -416,7 +416,7 @@ synchronized void updateUserDataCell(int row, int col) {
416416
}
417417
}
418418

419-
class UserDataCellRenderer extends DefaultTableCellRenderer {
419+
static class UserDataCellRenderer extends DefaultTableCellRenderer {
420420

421421
Component comp;
422422

@@ -444,7 +444,7 @@ public Component getComponent() {
444444
}
445445
}
446446

447-
class UserDataCell {
447+
static class UserDataCell {
448448

449449
TableCellRenderer minRenderer;
450450
UserDataCellRenderer maxRenderer;

0 commit comments

Comments
 (0)