Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8250811: Address reliance on default constructors in the javax.swing.…
…plaf.multi APIs

Reviewed-by: prr, serb
  • Loading branch information
prsadhuk committed Aug 12, 2020
1 parent c1749c1 commit 3f6b4736538e42fc9db2d14f22cc89640e91ddb4
Showing with 155 additions and 0 deletions.
  1. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiButtonUI.java
  2. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiColorChooserUI.java
  3. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiComboBoxUI.java
  4. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiDesktopIconUI.java
  5. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiDesktopPaneUI.java
  6. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiFileChooserUI.java
  7. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiInternalFrameUI.java
  8. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiLabelUI.java
  9. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiListUI.java
  10. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiLookAndFeel.java
  11. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiMenuBarUI.java
  12. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiMenuItemUI.java
  13. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiOptionPaneUI.java
  14. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiPanelUI.java
  15. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiPopupMenuUI.java
  16. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiProgressBarUI.java
  17. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiRootPaneUI.java
  18. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiScrollBarUI.java
  19. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiScrollPaneUI.java
  20. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiSeparatorUI.java
  21. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiSliderUI.java
  22. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiSpinnerUI.java
  23. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiSplitPaneUI.java
  24. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiTabbedPaneUI.java
  25. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiTableHeaderUI.java
  26. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiTableUI.java
  27. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiTextUI.java
  28. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiToolBarUI.java
  29. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiToolTipUI.java
  30. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiTreeUI.java
  31. +5 −0 src/java.desktop/share/classes/javax/swing/plaf/multi/MultiViewportUI.java
@@ -49,6 +49,11 @@ public class MultiButtonUI extends ButtonUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiButtonUI}.
*/
public MultiButtonUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -49,6 +49,11 @@ public class MultiColorChooserUI extends ColorChooserUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiColorChooserUI}.
*/
public MultiColorChooserUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -50,6 +50,11 @@ public class MultiComboBoxUI extends ComboBoxUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiComboBoxUI}.
*/
public MultiComboBoxUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -49,6 +49,11 @@ public class MultiDesktopIconUI extends DesktopIconUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiDesktopIconUI}.
*/
public MultiDesktopIconUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -49,6 +49,11 @@ public class MultiDesktopPaneUI extends DesktopPaneUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiDesktopPaneUI}.
*/
public MultiDesktopPaneUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -54,6 +54,11 @@ public class MultiFileChooserUI extends FileChooserUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiFileChooserUI}.
*/
public MultiFileChooserUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -49,6 +49,11 @@ public class MultiInternalFrameUI extends InternalFrameUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiInternalFrameUI}.
*/
public MultiInternalFrameUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -49,6 +49,11 @@ public class MultiLabelUI extends LabelUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiLabelUI}.
*/
public MultiLabelUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -52,6 +52,11 @@ public class MultiListUI extends ListUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiListUI}.
*/
public MultiListUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -59,6 +59,11 @@
@SuppressWarnings("serial") // Same-version serialization only
public class MultiLookAndFeel extends LookAndFeel {

/**
* Constructs a {@code MultiLookAndFeel}.
*/
public MultiLookAndFeel() {}

//////////////////////////////
// LookAndFeel methods
//////////////////////////////
@@ -49,6 +49,11 @@ public class MultiMenuBarUI extends MenuBarUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiMenuBarUI}.
*/
public MultiMenuBarUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -50,6 +50,11 @@ public class MultiMenuItemUI extends MenuItemUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiMenuItemUI}.
*/
public MultiMenuItemUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -50,6 +50,11 @@ public class MultiOptionPaneUI extends OptionPaneUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiOptionPaneUI}.
*/
public MultiOptionPaneUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -49,6 +49,11 @@ public class MultiPanelUI extends PanelUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiPanelUI}.
*/
public MultiPanelUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -52,6 +52,11 @@ public class MultiPopupMenuUI extends PopupMenuUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiPopupMenuUI}.
*/
public MultiPopupMenuUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -49,6 +49,11 @@ public class MultiProgressBarUI extends ProgressBarUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiProgressBarUI}.
*/
public MultiProgressBarUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -50,6 +50,11 @@ public class MultiRootPaneUI extends RootPaneUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiRootPaneUI}.
*/
public MultiRootPaneUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -49,6 +49,11 @@ public class MultiScrollBarUI extends ScrollBarUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiScrollBarUI}.
*/
public MultiScrollBarUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -49,6 +49,11 @@ public class MultiScrollPaneUI extends ScrollPaneUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiScrollPaneUI}.
*/
public MultiScrollPaneUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -49,6 +49,11 @@ public class MultiSeparatorUI extends SeparatorUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiSeparatorUI}.
*/
public MultiSeparatorUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -49,6 +49,11 @@ public class MultiSliderUI extends SliderUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiSliderUI}.
*/
public MultiSliderUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -50,6 +50,11 @@ public class MultiSpinnerUI extends SpinnerUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiSpinnerUI}.
*/
public MultiSpinnerUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -50,6 +50,11 @@ public class MultiSplitPaneUI extends SplitPaneUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiSplitPaneUI}.
*/
public MultiSplitPaneUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -51,6 +51,11 @@ public class MultiTabbedPaneUI extends TabbedPaneUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiTabbedPaneUI}.
*/
public MultiTabbedPaneUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -49,6 +49,11 @@ public class MultiTableHeaderUI extends TableHeaderUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiTableHeaderUI}.
*/
public MultiTableHeaderUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -49,6 +49,11 @@ public class MultiTableUI extends TableUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiTableUI}.
*/
public MultiTableUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -59,6 +59,11 @@ public class MultiTextUI extends TextUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiTextUI}.
*/
public MultiTextUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -49,6 +49,11 @@ public class MultiToolBarUI extends ToolBarUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiToolBarUI}.
*/
public MultiToolBarUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -49,6 +49,11 @@ public class MultiToolTipUI extends ToolTipUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiToolTipUI}.
*/
public MultiToolTipUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -52,6 +52,11 @@ public class MultiTreeUI extends TreeUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiTreeUI}.
*/
public MultiTreeUI() {}

////////////////////
// Common UI methods
////////////////////
@@ -49,6 +49,11 @@ public class MultiViewportUI extends ViewportUI {
*/
protected Vector<ComponentUI> uis = new Vector<>();

/**
* Constructs a {@code MultiViewportUI}.
*/
public MultiViewportUI() {}

////////////////////
// Common UI methods
////////////////////

0 comments on commit 3f6b473

Please sign in to comment.