src/macosx/classes/com/apple/laf/AquaComboBoxButton.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2014, 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
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -31,20 +31,22 @@
 import javax.swing.plaf.UIResource;
 
 import apple.laf.JRSUIState;
 import apple.laf.JRSUIConstants.*;
 
+@SuppressWarnings("serial") // Superclass is not serializable across versions
 class AquaComboBoxButton extends JButton {
     final protected JComboBox comboBox;
     final protected JList list;
     final protected CellRendererPane rendererPane;
     final protected AquaComboBoxUI ui;
 
     protected final AquaPainter<JRSUIState> painter = AquaPainter.create(JRSUIState.getInstance());
     boolean isPopDown;
     boolean isSquare;
 
+    @SuppressWarnings("serial") // anonymous class
     protected AquaComboBoxButton(final AquaComboBoxUI ui, final JComboBox comboBox, final CellRendererPane rendererPane, final JList list) {
         super("");
         putClientProperty("JButton.buttonType", "comboboxInternal");
 
         this.ui = ui;