Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8275384: Change nested classes in jdk.jconsole to static nested classes #5974

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -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;