Skip to content
Permalink
Browse files
8275384: Change nested classes in jdk.jconsole to static nested classes
Reviewed-by: alanb, sspitsyn, mchung
  • Loading branch information
turbanoff authored and Mandy Chung committed Oct 21, 2021
1 parent 0961de4 commit 4e9dd4bddb888717d774147d4ba1acecc750629c
Showing 5 changed files with 12 additions and 12 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -189,7 +189,7 @@ public void setTitle(String title) {
}


private class FixedMenuBarLayout extends BoxLayout {
private static class FixedMenuBarLayout extends BoxLayout {
public FixedMenuBarLayout(Container target, int axis) {
super(target, axis);
}
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -438,7 +438,7 @@ public void actionPerformed(ActionEvent ev) {
}
}

private class PoolPlotter extends Plotter {
private static class PoolPlotter extends Plotter {
ObjectName objectName;
String name;
boolean isHeap;
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -619,7 +619,7 @@ public Dimension getPreferredSize() {
}
}

private class PromptingTextField extends JTextField implements FocusListener {
private static class PromptingTextField extends JTextField implements FocusListener {
private String prompt;
boolean promptRemoved = false;
Color fg;
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -865,7 +865,7 @@ public boolean stopCellEditing() {
}
}

class MaximizedCellRenderer extends DefaultTableCellRenderer {
static class MaximizedCellRenderer extends DefaultTableCellRenderer {
Component comp;
MaximizedCellRenderer(Component comp) {
this.comp = comp;
@@ -888,7 +888,7 @@ public Component getComponent() {
}
}

class ZoomedCell {
static class ZoomedCell {
TableCellRenderer minRenderer;
MaximizedCellRenderer maxRenderer;
int minHeight;
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -416,7 +416,7 @@ synchronized void updateUserDataCell(int row, int col) {
}
}

class UserDataCellRenderer extends DefaultTableCellRenderer {
static class UserDataCellRenderer extends DefaultTableCellRenderer {

Component comp;

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

class UserDataCell {
static class UserDataCell {

TableCellRenderer minRenderer;
UserDataCellRenderer maxRenderer;

1 comment on commit 4e9dd4b

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 4e9dd4b Oct 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.