src/macosx/classes/com/apple/laf/AquaToolBarUI.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

@@ -53,10 +53,11 @@
         window.getRootPane().putClientProperty("Window.style", "small");
         return window;
     }
 
     /* ToolBarBorder and drag-off handle, based loosly on MetalBumps */
+    @SuppressWarnings("serial") // Superclass is not serializable across versions
     static class ToolBarBorder extends AbstractBorder implements UIResource, javax.swing.SwingConstants {
         protected void fillHandle(final Graphics g, final int x1, final int y1, final int x2, final int y2, final boolean horizontal) {
             g.setColor(UIManager.getColor("ToolBar.borderHandleColor"));
             if (horizontal) {
                 final int h = y2 - y1 - 2;