--- old/src/java.desktop/share/classes/com/sun/beans/editors/ColorEditor.java 2014-12-09 10:06:45.445094655 -0800 +++ new/src/java.desktop/share/classes/com/sun/beans/editors/ColorEditor.java 2014-12-09 10:06:45.289094648 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 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 @@ -31,6 +31,7 @@ public class ColorEditor extends Panel implements PropertyEditor { private static final long serialVersionUID = 1781257185164716054L; + @SuppressWarnings("deprecation") public ColorEditor() { setLayout(null); @@ -69,10 +70,12 @@ changeColor(c); } + @SuppressWarnings("deprecation") public Dimension preferredSize() { return new Dimension(ourWidth, 40); } + @SuppressWarnings("deprecation") public boolean keyUp(Event e, int key) { if (e.target == text) { try { @@ -107,6 +110,7 @@ } + @SuppressWarnings("deprecation") public boolean action(Event e, Object arg) { if (e.target == choser) { changeColor(colors[choser.getSelectedIndex()]); --- old/src/java.desktop/share/classes/com/sun/beans/editors/FontEditor.java 2014-12-09 10:06:45.889094675 -0800 +++ new/src/java.desktop/share/classes/com/sun/beans/editors/FontEditor.java 2014-12-09 10:06:45.737094668 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 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 @@ -31,6 +31,7 @@ public class FontEditor extends Panel implements java.beans.PropertyEditor { private static final long serialVersionUID = 6732704486002715933L; + @SuppressWarnings("deprecation") public FontEditor() { setLayout(null); @@ -62,6 +63,7 @@ } + @SuppressWarnings("deprecation") public Dimension preferredSize() { return new Dimension(300, 40); } @@ -93,6 +95,7 @@ } } + @SuppressWarnings("deprecation") private void changeFont(Font f) { font = f; if (sample != null) { @@ -124,6 +127,7 @@ font.getStyle() + ", " + font.getSize() + ")"; } + @SuppressWarnings("deprecation") public boolean action(Event e, Object arg) { String family = familyChoser.getSelectedItem(); int style = styles[styleChoser.getSelectedIndex()]; --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java 2014-12-09 10:06:46.305094693 -0800 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java 2014-12-09 10:06:46.153094687 -0800 @@ -143,6 +143,7 @@ return map; } + @SuppressWarnings("deprecation") public String getFileName() { JFileChooser fc = getFileChooser(); String typedInName = fileNameTextField != null ? @@ -419,6 +420,7 @@ + @SuppressWarnings("deprecation") protected class SelectionListener implements ListSelectionListener { public void valueChanged(ListSelectionEvent e) { if (!e.getValueIsAdjusting()) { --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifDesktopIconUI.java 2014-12-09 10:06:46.757094713 -0800 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifDesktopIconUI.java 2014-12-09 10:06:46.597094706 -0800 @@ -245,6 +245,7 @@ e.isPopupTrigger(), MouseEvent.NOBUTTON)); } + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { return false; } @@ -336,6 +337,7 @@ e.getClickCount(), e.isPopupTrigger(), MouseEvent.NOBUTTON )); } + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { return false; } --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifInternalFrameTitlePane.java 2014-12-09 10:06:47.229094734 -0800 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifInternalFrameTitlePane.java 2014-12-09 10:06:47.053094727 -0800 @@ -242,6 +242,7 @@ setBorderPainted(false); } + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { return false; } --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsDesktopPaneUI.java 2014-12-09 10:06:47.729094756 -0800 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsDesktopPaneUI.java 2014-12-09 10:06:47.549094748 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 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 @@ -60,6 +60,7 @@ super.installDefaults(); } + @SuppressWarnings("deprecation") protected void installKeyboardActions() { super.installKeyboardActions(); --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java 2014-12-09 10:06:48.205094778 -0800 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java 2014-12-09 10:06:48.033094770 -0800 @@ -2487,6 +2487,7 @@ /** * Calculates the dialog unit mapping. */ + @SuppressWarnings("deprecation") private void calculateBaseUnits() { // This calculation comes from: // http://support.microsoft.com/default.aspx?scid=kb;EN-US;125681 --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsPopupWindow.java 2014-12-09 10:06:49.053094815 -0800 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsPopupWindow.java 2014-12-09 10:06:48.905094809 -0800 @@ -78,6 +78,7 @@ paint(g); } + @SuppressWarnings("deprecation") public void hide() { super.hide(); /** We need to call removeNotify() here because hide() does @@ -89,6 +90,7 @@ removeNotify(); } + @SuppressWarnings("deprecation") public void show() { super.show(); this.pack(); --- old/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/XPStyle.java 2014-12-09 10:06:49.517094836 -0800 +++ new/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/XPStyle.java 2014-12-09 10:06:49.361094829 -0800 @@ -700,6 +700,7 @@ setMaximumSize(new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE)); } + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { return false; } --- old/src/java.desktop/share/classes/java/awt/Canvas.java 2014-12-09 10:06:49.953094855 -0800 +++ new/src/java.desktop/share/classes/java/awt/Canvas.java 2014-12-09 10:06:49.801094848 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 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 @@ -70,6 +70,7 @@ } @Override + @SuppressWarnings("deprecation") void setGraphicsConfiguration(GraphicsConfiguration gc) { synchronized(getTreeLock()) { CanvasPeer peer = (CanvasPeer)getPeer(); --- old/src/java.desktop/share/classes/java/awt/Container.java 2014-12-09 10:06:50.473094878 -0800 +++ new/src/java.desktop/share/classes/java/awt/Container.java 2014-12-09 10:06:50.305094870 -0800 @@ -805,6 +805,7 @@ * to new heavyweight parent. * @since 1.5 */ + @SuppressWarnings("deprecation") private void reparentTraverse(ContainerPeer parentPeer, Container child) { checkTreeLock(); @@ -828,6 +829,7 @@ * Container must be heavyweight. * @since 1.5 */ + @SuppressWarnings("deprecation") private void reparentChild(Component comp) { checkTreeLock(); if (comp == null) { @@ -4189,6 +4191,7 @@ } } + @SuppressWarnings("deprecation") private void recursiveShowHeavyweightChildren() { if (!hasHeavyweightDescendants() || !isVisible()) { return; @@ -4210,6 +4213,7 @@ } } + @SuppressWarnings("deprecation") private void recursiveHideHeavyweightChildren() { if (!hasHeavyweightDescendants()) { return; @@ -4231,6 +4235,7 @@ } } + @SuppressWarnings("deprecation") private void recursiveRelocateHeavyweightChildren(Point origin) { for (int index = 0; index < getComponentCount(); index++) { Component comp = getComponent(index); --- old/src/java.desktop/share/classes/java/awt/DefaultFocusTraversalPolicy.java 2014-12-09 10:06:51.037094903 -0800 +++ new/src/java.desktop/share/classes/java/awt/DefaultFocusTraversalPolicy.java 2014-12-09 10:06:50.861094895 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 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 @@ -93,6 +93,7 @@ * @return true if aComponent meets the above requirements; * false otherwise */ + @SuppressWarnings("deprecation") protected boolean accept(Component aComponent) { if (!(aComponent.isVisible() && aComponent.isDisplayable() && aComponent.isEnabled())) --- old/src/java.desktop/share/classes/java/awt/DefaultKeyboardFocusManager.java 2014-12-09 10:06:51.505094924 -0800 +++ new/src/java.desktop/share/classes/java/awt/DefaultKeyboardFocusManager.java 2014-12-09 10:06:51.345094917 -0800 @@ -796,6 +796,7 @@ * @return true * @see Component#dispatchEvent */ + @SuppressWarnings("deprecation") public boolean dispatchKeyEvent(KeyEvent e) { Component focusOwner = (((AWTEvent)e).isPosted) ? getFocusOwner() : e.getComponent(); @@ -1021,6 +1022,7 @@ } } + @SuppressWarnings("deprecation") private boolean preDispatchKeyEvent(KeyEvent ke) { if (((AWTEvent) ke).isPosted) { Component focusOwner = getFocusOwner(); --- old/src/java.desktop/share/classes/java/awt/Dialog.java 2014-12-09 10:06:51.965094944 -0800 +++ new/src/java.desktop/share/classes/java/awt/Dialog.java 2014-12-09 10:06:51.809094937 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 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 @@ -749,6 +749,7 @@ * @see Component#isDisplayable * @see #removeNotify */ + @SuppressWarnings("deprecation") public void addNotify() { synchronized (getTreeLock()) { if (parent != null && parent.getPeer() == null) { @@ -897,6 +898,7 @@ /** * @return true if we actually showed, false if we just called toFront() */ + @SuppressWarnings("deprecation") private boolean conditionalShow(Component toFocus, AtomicLong time) { boolean retval; --- old/src/java.desktop/share/classes/java/awt/FileDialog.java 2014-12-09 10:06:52.457094966 -0800 +++ new/src/java.desktop/share/classes/java/awt/FileDialog.java 2014-12-09 10:06:52.281094958 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 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 @@ -314,6 +314,7 @@ * Creates the file dialog's peer. The peer allows us to change the look * of the file dialog without changing its functionality. */ + @SuppressWarnings("deprecation") public void addNotify() { synchronized(getTreeLock()) { if (parent != null && parent.getPeer() == null) { --- old/src/java.desktop/share/classes/java/awt/FontMetrics.java 2014-12-09 10:06:52.897094985 -0800 +++ new/src/java.desktop/share/classes/java/awt/FontMetrics.java 2014-12-09 10:06:52.745094979 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 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 @@ -409,6 +409,7 @@ * @see #charsWidth(char[], int, int) * @see #stringWidth(String) */ + @SuppressWarnings("deprecation") public int bytesWidth(byte data[], int off, int len) { return stringWidth(new String(data, 0, off, len)); } --- old/src/java.desktop/share/classes/java/awt/Graphics.java 2014-12-09 10:06:53.337095005 -0800 +++ new/src/java.desktop/share/classes/java/awt/Graphics.java 2014-12-09 10:06:53.173094997 -0800 @@ -843,6 +843,7 @@ * @see java.awt.Graphics#drawChars * @see java.awt.Graphics#drawString */ + @SuppressWarnings("deprecation") public void drawBytes(byte data[], int offset, int length, int x, int y) { drawString(new String(data, 0, offset, length), x, y); } --- old/src/java.desktop/share/classes/java/awt/KeyboardFocusManager.java 2014-12-09 10:06:53.777095024 -0800 +++ new/src/java.desktop/share/classes/java/awt/KeyboardFocusManager.java 2014-12-09 10:06:53.617095017 -0800 @@ -3054,6 +3054,7 @@ return (wto != wfrom); } + @SuppressWarnings("deprecation") static Component getHeavyweight(Component comp) { if (comp == null || comp.getPeer() == null) { return null; --- old/src/java.desktop/share/classes/java/awt/PopupMenu.java 2014-12-09 10:06:54.253095045 -0800 +++ new/src/java.desktop/share/classes/java/awt/PopupMenu.java 2014-12-09 10:06:54.093095038 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 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 @@ -153,6 +153,7 @@ * parent's hierarchy * @exception RuntimeException if the parent is not showing on screen */ + @SuppressWarnings("deprecation") public void show(Component origin, int x, int y) { // Use localParent for thread safety. MenuContainer localParent = parent; --- old/src/java.desktop/share/classes/java/awt/ScrollPane.java 2014-12-09 10:06:54.721095066 -0800 +++ new/src/java.desktop/share/classes/java/awt/ScrollPane.java 2014-12-09 10:06:54.561095059 -0800 @@ -732,6 +732,7 @@ /** * Invoked when the value of the adjustable has changed. */ + @SuppressWarnings("deprecation") public void adjustmentValueChanged(AdjustmentEvent e) { Adjustable adj = e.getAdjustable(); int value = e.getValue(); @@ -831,6 +832,7 @@ /** * Invoked when the value of the adjustable has changed. */ + @SuppressWarnings("deprecation") public void adjustmentValueChanged(AdjustmentEvent e) { Adjustable adj = e.getAdjustable(); int value = e.getValue(); --- old/src/java.desktop/share/classes/java/awt/SplashScreen.java 2014-12-09 10:06:55.177095086 -0800 +++ new/src/java.desktop/share/classes/java/awt/SplashScreen.java 2014-12-09 10:06:55.017095079 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2005, 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 @@ -203,6 +203,7 @@ * @return URL for the current splash screen image file * @throws IllegalStateException if the splash screen has already been closed */ + @SuppressWarnings("deprecation") public URL getImageURL() throws IllegalStateException { synchronized (SplashScreen.class) { checkVisible(); --- old/src/java.desktop/share/classes/java/awt/Window.java 2014-12-09 10:06:55.641095107 -0800 +++ new/src/java.desktop/share/classes/java/awt/Window.java 2014-12-09 10:06:55.481095100 -0800 @@ -755,6 +755,7 @@ * @see Container#removeNotify * @since 1.0 */ + @SuppressWarnings("deprecation") public void addNotify() { synchronized (getTreeLock()) { Container parent = this.parent; @@ -798,6 +799,7 @@ * @see Component#isDisplayable * @see #setMinimumSize */ + @SuppressWarnings("deprecation") public void pack() { Container parent = this.parent; if (parent != null && parent.getPeer() == null) { @@ -1070,6 +1072,7 @@ } } + @SuppressWarnings("deprecation") static void updateChildFocusableWindowState(Window w) { if (w.getPeer() != null && w.isShowing()) { ((WindowPeer)w.getPeer()).updateFocusableWindowState(); @@ -1157,6 +1160,7 @@ * as reported in javadoc. So we need to implement this functionality even if a * child overrides dispose() in a wrong way without calling super.dispose(). */ + @SuppressWarnings("deprecation") void disposeImpl() { dispose(); if (getPeer() != null) { @@ -3623,6 +3627,7 @@ * * @since 1.7 */ + @SuppressWarnings("deprecation") public void setOpacity(float opacity) { synchronized (getTreeLock()) { if (opacity < 0.0f || opacity > 1.0f) { @@ -3721,6 +3726,7 @@ * * @since 1.7 */ + @SuppressWarnings("deprecation") public void setShape(Shape shape) { synchronized (getTreeLock()) { if (shape != null) { @@ -3838,6 +3844,7 @@ * @see GraphicsConfiguration#isTranslucencyCapable() */ @Override + @SuppressWarnings("deprecation") public void setBackground(Color bgColor) { Color oldBg = getBackground(); super.setBackground(bgColor); @@ -3890,6 +3897,7 @@ return bg != null ? bg.getAlpha() == 255 : true; } + @SuppressWarnings("deprecation") private void updateWindow() { synchronized (getTreeLock()) { WindowPeer peer = (WindowPeer)getPeer(); @@ -4080,6 +4088,7 @@ window.securityWarningHeight = height; } + @SuppressWarnings("deprecation") public void setSecurityWarningPosition(Window window, Point2D point, float alignmentX, float alignmentY) { --- old/src/java.desktop/share/classes/java/awt/datatransfer/StringSelection.java 2014-12-09 10:06:56.141095129 -0800 +++ new/src/java.desktop/share/classes/java/awt/datatransfer/StringSelection.java 2014-12-09 10:06:55.985095122 -0800 @@ -47,6 +47,7 @@ private static final int STRING = 0; private static final int PLAIN_TEXT = 1; + @SuppressWarnings("deprecation") private static final DataFlavor[] flavors = { DataFlavor.stringFlavor, DataFlavor.plainTextFlavor // deprecated --- old/src/java.desktop/share/classes/java/awt/datatransfer/SystemFlavorMap.java 2014-12-09 10:06:56.585095148 -0800 +++ new/src/java.desktop/share/classes/java/awt/datatransfer/SystemFlavorMap.java 2014-12-09 10:06:56.433095142 -0800 @@ -624,6 +624,7 @@ return new ArrayList<>(returnValue); } + @SuppressWarnings("deprecation") private static Set convertMimeTypeToDataFlavors( final String baseType) { --- old/src/java.desktop/share/classes/java/awt/dnd/DropTarget.java 2014-12-09 10:06:57.029095168 -0800 +++ new/src/java.desktop/share/classes/java/awt/dnd/DropTarget.java 2014-12-09 10:06:56.877095161 -0800 @@ -499,6 +499,7 @@ * */ + @SuppressWarnings("deprecation") public void addNotify(ComponentPeer peer) { if (peer == componentPeer) return; @@ -690,6 +691,7 @@ * update the geometry of the autoscroll region */ + @SuppressWarnings("deprecation") private void updateRegion() { Insets i = autoScroll.getAutoscrollInsets(); Dimension size = component.getSize(); --- old/src/java.desktop/share/classes/javax/print/ServiceUI.java 2014-12-09 10:06:57.557095192 -0800 +++ new/src/java.desktop/share/classes/javax/print/ServiceUI.java 2014-12-09 10:06:57.385095184 -0800 @@ -149,6 +149,7 @@ * or attributes is null, or the initial PrintService is not in the * list of browsable services. */ + @SuppressWarnings("deprecation") public static PrintService printDialog(GraphicsConfiguration gc, int x, int y, PrintService[] services, --- old/src/java.desktop/share/classes/javax/swing/DebugGraphics.java 2014-12-09 10:06:58.005095211 -0800 +++ new/src/java.desktop/share/classes/javax/swing/DebugGraphics.java 2014-12-09 10:06:57.845095204 -0800 @@ -1453,6 +1453,7 @@ /** Returns a DebugGraphics for use in buffering window. */ + @SuppressWarnings("deprecation") private Graphics debugGraphics() { DebugGraphics debugGraphics; DebugGraphicsInfo info = info(); --- old/src/java.desktop/share/classes/javax/swing/JApplet.java 2014-12-09 10:06:58.461095232 -0800 +++ new/src/java.desktop/share/classes/javax/swing/JApplet.java 2014-12-09 10:06:58.301095224 -0800 @@ -243,6 +243,7 @@ * hidden: true * description: The menubar for accessing pulldown menus from this applet. */ + @SuppressWarnings("deprecation") public void setJMenuBar(JMenuBar menuBar) { getRootPane().setMenuBar(menuBar); } @@ -253,6 +254,7 @@ * @return the menubar set on this applet * @see #setJMenuBar */ + @SuppressWarnings("deprecation") public JMenuBar getJMenuBar() { return getRootPane().getMenuBar(); } --- old/src/java.desktop/share/classes/javax/swing/JColorChooser.java 2014-12-09 10:06:58.937095253 -0800 +++ new/src/java.desktop/share/classes/javax/swing/JColorChooser.java 2014-12-09 10:06:58.749095244 -0800 @@ -133,6 +133,7 @@ * returns true. * @see java.awt.GraphicsEnvironment#isHeadless */ + @SuppressWarnings("deprecation") public static Color showDialog(Component component, String title, Color initialColor) throws HeadlessException { @@ -654,6 +655,7 @@ okButton.getAccessibleContext().setAccessibleDescription(okString); okButton.setActionCommand("OK"); okButton.addActionListener(new ActionListener() { + @SuppressWarnings("deprecation") public void actionPerformed(ActionEvent e) { hide(); } @@ -685,6 +687,7 @@ cancelButton.setActionCommand("cancel"); cancelButton.addActionListener(new ActionListener() { + @SuppressWarnings("deprecation") public void actionPerformed(ActionEvent e) { hide(); } @@ -723,6 +726,7 @@ this.addWindowListener(new Closer()); } + @SuppressWarnings("deprecation") public void show() { initialColor = chooserPane.getColor(); super.show(); @@ -734,6 +738,7 @@ @SuppressWarnings("serial") // JDK-implementation class class Closer extends WindowAdapter implements Serializable{ + @SuppressWarnings("deprecation") public void windowClosing(WindowEvent e) { cancelButton.doClick(0); Window w = e.getWindow(); --- old/src/java.desktop/share/classes/javax/swing/JComponent.java 2014-12-09 10:06:59.429095274 -0800 +++ new/src/java.desktop/share/classes/javax/swing/JComponent.java 2014-12-09 10:06:59.249095266 -0800 @@ -5049,6 +5049,7 @@ this.paintingChild = paintingChild; } + @SuppressWarnings("deprecation") void _paintImmediately(int x, int y, int w, int h) { Graphics g; Container c; --- old/src/java.desktop/share/classes/javax/swing/JDialog.java 2014-12-09 10:06:59.953095298 -0800 +++ new/src/java.desktop/share/classes/javax/swing/JDialog.java 2014-12-09 10:06:59.793095291 -0800 @@ -849,6 +849,7 @@ * hidden: true * description: The menubar for accessing pulldown menus from this dialog. */ + @SuppressWarnings("deprecation") public void setJMenuBar(JMenuBar menu) { getRootPane().setMenuBar(menu); } @@ -859,6 +860,7 @@ * @return the menubar set on this dialog * @see #setJMenuBar */ + @SuppressWarnings("deprecation") public JMenuBar getJMenuBar() { return getRootPane().getMenuBar(); } --- old/src/java.desktop/share/classes/javax/swing/JFileChooser.java 2014-12-09 10:07:00.425095318 -0800 +++ new/src/java.desktop/share/classes/javax/swing/JFileChooser.java 2014-12-09 10:07:00.261095311 -0800 @@ -757,6 +757,7 @@ * returns true. * @see java.awt.GraphicsEnvironment#isHeadless */ + @SuppressWarnings("deprecation") public int showDialog(Component parent, String approveButtonText) throws HeadlessException { if (dialog != null) { --- old/src/java.desktop/share/classes/javax/swing/JFrame.java 2014-12-09 10:07:01.017095345 -0800 +++ new/src/java.desktop/share/classes/javax/swing/JFrame.java 2014-12-09 10:07:00.857095338 -0800 @@ -494,6 +494,7 @@ * hidden: true * description: The menubar for accessing pulldown menus from this frame. */ + @SuppressWarnings("deprecation") public void setJMenuBar(JMenuBar menubar) { getRootPane().setMenuBar(menubar); } @@ -504,6 +505,7 @@ * * @see #setJMenuBar */ + @SuppressWarnings("deprecation") public JMenuBar getJMenuBar() { return getRootPane().getMenuBar(); } --- old/src/java.desktop/share/classes/javax/swing/JInternalFrame.java 2014-12-09 10:07:01.521095367 -0800 +++ new/src/java.desktop/share/classes/javax/swing/JInternalFrame.java 2014-12-09 10:07:01.349095359 -0800 @@ -1494,6 +1494,7 @@ * @param width an integer giving the component's new width in pixels * @param height an integer giving the component's new height in pixels */ + @SuppressWarnings("deprecation") public void reshape(int x, int y, int width, int height) { super.reshape(x, y, width, height); validate(); @@ -1735,6 +1736,7 @@ * @see InternalFrameEvent#INTERNAL_FRAME_OPENED * @see #setVisible */ + @SuppressWarnings("deprecation") public void show() { // bug 4312922 if (isVisible()) { @@ -1766,6 +1768,7 @@ } } + @SuppressWarnings("deprecation") public void hide() { if (isIcon()) { getDesktopIcon().setVisible(false); --- old/src/java.desktop/share/classes/javax/swing/JList.java 2014-12-09 10:07:02.029095389 -0800 +++ new/src/java.desktop/share/classes/javax/swing/JList.java 2014-12-09 10:07:01.841095381 -0800 @@ -3663,6 +3663,7 @@ } } + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { AccessibleContext ac = getCurrentAccessibleContext(); if (ac instanceof AccessibleComponent) { --- old/src/java.desktop/share/classes/javax/swing/JOptionPane.java 2014-12-09 10:07:02.585095414 -0800 +++ new/src/java.desktop/share/classes/javax/swing/JOptionPane.java 2014-12-09 10:07:02.413095406 -0800 @@ -566,6 +566,7 @@ * true * @see java.awt.GraphicsEnvironment#isHeadless */ + @SuppressWarnings("deprecation") public static Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue) @@ -855,6 +856,7 @@ * true * @see java.awt.GraphicsEnvironment#isHeadless */ + @SuppressWarnings("deprecation") public static int showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue) --- old/src/java.desktop/share/classes/javax/swing/JTabbedPane.java 2014-12-09 10:07:03.097095437 -0800 +++ new/src/java.desktop/share/classes/javax/swing/JTabbedPane.java 2014-12-09 10:07:02.937095430 -0800 @@ -333,6 +333,7 @@ * @see #addChangeListener * @see EventListenerList */ + @SuppressWarnings("deprecation") protected void fireStateChanged() { /* --- Begin code to deal with visibility --- */ @@ -949,6 +950,7 @@ * @see #addTab * @see #insertTab */ + @SuppressWarnings("deprecation") public void removeTabAt(int index) { checkIndex(index); @@ -1557,6 +1559,7 @@ * attribute: visualUpdate true * description: The component at the specified tab index. */ + @SuppressWarnings("deprecation") public void setComponentAt(int index, Component component) { Page page = pages.get(index); if (component != page.component) { --- old/src/java.desktop/share/classes/javax/swing/JTable.java 2014-12-09 10:07:03.577095458 -0800 +++ new/src/java.desktop/share/classes/javax/swing/JTable.java 2014-12-09 10:07:03.401095450 -0800 @@ -5810,6 +5810,7 @@ * where 0 is the first column * @return the Component being edited */ + @SuppressWarnings("deprecation") public Component prepareEditor(TableCellEditor editor, int row, int column) { Object value = getValueAt(row, column); boolean isSelected = isCellSelected(row, column); @@ -8788,6 +8789,7 @@ } } + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { AccessibleContext ac = getCurrentAccessibleContext(); if (ac instanceof AccessibleComponent) { @@ -9640,6 +9642,7 @@ * @see AccessibleState#FOCUSED * @see AccessibleStateSet */ + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { AccessibleContext ac = getCurrentAccessibleContext(); if (ac instanceof AccessibleComponent) { --- old/src/java.desktop/share/classes/javax/swing/JViewport.java 2014-12-09 10:07:04.133095483 -0800 +++ new/src/java.desktop/share/classes/javax/swing/JViewport.java 2014-12-09 10:07:03.981095476 -0800 @@ -829,6 +829,7 @@ * * @see JComponent#reshape(int, int, int, int) */ + @SuppressWarnings("deprecation") public void reshape(int x, int y, int w, int h) { boolean sizeChanged = (getWidth() != w) || (getHeight() != h); if (sizeChanged) { @@ -1447,6 +1448,7 @@ * Returns true if the component needs to be completely repainted after * a blit and a paint is received. */ + @SuppressWarnings("deprecation") private boolean needsRepaintAfterBlit() { // Find the first heavy weight ancestor. isObscured and // canDetermineObscurity are only appropriate for heavy weights. --- old/src/java.desktop/share/classes/javax/swing/Popup.java 2014-12-09 10:07:04.657095506 -0800 +++ new/src/java.desktop/share/classes/javax/swing/Popup.java 2014-12-09 10:07:04.469095497 -0800 @@ -253,6 +253,7 @@ paint(g); } + @SuppressWarnings("deprecation") public void show() { this.pack(); if (getWidth() > 0 && getHeight() > 0) { --- old/src/java.desktop/share/classes/javax/swing/ProgressMonitor.java 2014-12-09 10:07:05.173095529 -0800 +++ new/src/java.desktop/share/classes/javax/swing/ProgressMonitor.java 2014-12-09 10:07:05.005095521 -0800 @@ -260,6 +260,7 @@ * @see #setMaximum * @see #close */ + @SuppressWarnings("deprecation") public void setProgress(int nv) { if (nv >= max) { close(); --- old/src/java.desktop/share/classes/javax/swing/RepaintManager.java 2014-12-09 10:07:05.645095550 -0800 +++ new/src/java.desktop/share/classes/javax/swing/RepaintManager.java 2014-12-09 10:07:05.477095542 -0800 @@ -401,6 +401,7 @@ * * @see JComponent#repaint */ + @SuppressWarnings("deprecation") private void addDirtyRegion0(Container c, int x, int y, int w, int h) { /* Special cases we don't have to bother with. */ --- old/src/java.desktop/share/classes/javax/swing/SortingFocusTraversalPolicy.java 2014-12-09 10:07:06.145095572 -0800 +++ new/src/java.desktop/share/classes/javax/swing/SortingFocusTraversalPolicy.java 2014-12-09 10:07:05.989095565 -0800 @@ -195,6 +195,7 @@ return true; } + @SuppressWarnings("deprecation") private void enumerateCycle(Container container, List cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; --- old/src/java.desktop/share/classes/javax/swing/SwingUtilities.java 2014-12-09 10:07:06.593095592 -0800 +++ new/src/java.desktop/share/classes/javax/swing/SwingUtilities.java 2014-12-09 10:07:06.437095585 -0800 @@ -1929,6 +1929,7 @@ public void windowDeactivated(WindowEvent e) { } + @SuppressWarnings("deprecation") public void show() { // This frame can never be shown } --- old/src/java.desktop/share/classes/javax/swing/UIManager.java 2014-12-09 10:07:07.049095612 -0800 +++ new/src/java.desktop/share/classes/javax/swing/UIManager.java 2014-12-09 10:07:06.885095604 -0800 @@ -1436,6 +1436,7 @@ /* * Sets default swing focus traversal policy. */ + @SuppressWarnings("deprecation") private static void maybeInitializeFocusPolicy(JComponent comp) { // Check for JRootPane which indicates that a swing toplevel // is coming, in which case a swing default focus policy --- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicArrowButton.java 2014-12-09 10:07:07.505095632 -0800 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicArrowButton.java 2014-12-09 10:07:07.357095625 -0800 @@ -216,6 +216,7 @@ * * @return {@code false} */ + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { return false; } --- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboPopup.java 2014-12-09 10:07:07.917095650 -0800 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboPopup.java 2014-12-09 10:07:07.765095643 -0800 @@ -223,6 +223,7 @@ /** * Implementation of ComboPopup.show(). */ + @SuppressWarnings("deprecation") public void show() { comboBox.firePopupMenuWillBecomeVisible(); setListSelection(comboBox.getSelectedIndex()); @@ -234,6 +235,7 @@ /** * Implementation of ComboPopup.hide(). */ + @SuppressWarnings("deprecation") public void hide() { MenuSelectionManager manager = MenuSelectionManager.defaultManager(); MenuElement [] selection = manager.getSelectedPath(); @@ -1032,6 +1034,7 @@ /** * Overridden to unconditionally return false. */ + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { return false; } --- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java 2014-12-09 10:07:08.369095670 -0800 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java 2014-12-09 10:07:08.209095663 -0800 @@ -502,6 +502,7 @@ public void mouseReleased(MouseEvent evt) { } + @SuppressWarnings("deprecation") public void valueChanged(ListSelectionEvent evt) { if(!evt.getValueIsAdjusting()) { JFileChooser chooser = getFileChooser(); @@ -1305,6 +1306,7 @@ * @return The representation of the data to be transfered. * */ + @SuppressWarnings("deprecation") protected Transferable createTransferable(JComponent c) { Object[] values = null; if (c instanceof JList) { --- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java 2014-12-09 10:07:08.813095690 -0800 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java 2014-12-09 10:07:08.661095683 -0800 @@ -926,6 +926,7 @@ * This class should be treated as a "protected" inner class. * Instantiate it only within subclasses of Foo. */ + @SuppressWarnings("deprecation") public class SystemMenuBar extends JMenuBar { public boolean isFocusTraversable() { return false; } public void requestFocus() {} @@ -963,6 +964,7 @@ setOpaque(((Boolean)opacity).booleanValue()); } } + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { return false; } public void requestFocus() {} public AccessibleContext getAccessibleContext() { --- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicListUI.java 2014-12-09 10:07:09.305095712 -0800 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicListUI.java 2014-12-09 10:07:09.141095704 -0800 @@ -2931,6 +2931,7 @@ * @return The representation of the data to be transfered. * */ + @SuppressWarnings("deprecation") protected Transferable createTransferable(JComponent c) { if (c instanceof JList) { JList list = (JList) c; --- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneDivider.java 2014-12-09 10:07:09.813095734 -0800 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneDivider.java 2014-12-09 10:07:09.669095728 -0800 @@ -441,6 +441,7 @@ } } // Don't want the button to participate in focus traversable. + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { return false; } @@ -497,6 +498,7 @@ } } // Don't want the button to participate in focus traversable. + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { return false; } --- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneUI.java 2014-12-09 10:07:10.273095754 -0800 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneUI.java 2014-12-09 10:07:10.109095747 -0800 @@ -1191,6 +1191,7 @@ * Should be messaged before the dragging session starts, resets * lastDragLocation and dividerSize. */ + @SuppressWarnings("deprecation") protected void startDragging() { Component leftC = splitPane.getLeftComponent(); Component rightC = splitPane.getRightComponent(); --- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java 2014-12-09 10:07:10.733095775 -0800 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java 2014-12-09 10:07:10.569095768 -0800 @@ -2395,6 +2395,7 @@ return total; } + @SuppressWarnings("deprecation") public void layoutContainer(Container parent) { /* Some of the code in this method deals with changing the * visibility of components to hide and show the contents for the @@ -2903,6 +2904,7 @@ return calculateMaxTabWidth(tabPlacement); } + @SuppressWarnings("deprecation") public void layoutContainer(Container parent) { /* Some of the code in this method deals with changing the * visibility of components to hide and show the contents for the --- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextUI.java 2014-12-09 10:07:11.345095802 -0800 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextUI.java 2014-12-09 10:07:11.161095794 -0800 @@ -2644,6 +2644,7 @@ /** * The only richer format supported is the file list flavor */ + @SuppressWarnings("deprecation") protected Object getRicherData(DataFlavor flavor) throws UnsupportedFlavorException { if (richText == null) { return null; --- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java 2014-12-09 10:07:11.845095824 -0800 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java 2014-12-09 10:07:11.689095817 -0800 @@ -421,6 +421,7 @@ * * @param direction a direction */ + @SuppressWarnings("deprecation") protected void navigateFocusedComp(int direction) { int nComp = toolBar.getComponentCount(); @@ -886,6 +887,7 @@ * @param b {@code true} if the {@code JToolBar} is floating * @param p the position */ + @SuppressWarnings("deprecation") public void setFloating(boolean b, Point p) { if (toolBar.isFloatable()) { boolean visible = false; @@ -1080,6 +1082,7 @@ * @param position the relative to the {@code JTollBar} position * @param origin the screen position of {@code JToolBar} before dragging */ + @SuppressWarnings("deprecation") protected void dragTo(Point position, Point origin) { if (toolBar.isFloatable()) --- old/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java 2014-12-09 10:07:12.345095846 -0800 +++ new/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java 2014-12-09 10:07:12.161095838 -0800 @@ -2363,6 +2363,7 @@ * @param messageCancel message to cancel editing * @param messageTree message to tree */ + @SuppressWarnings("deprecation") protected void completeEditing(boolean messageStop, boolean messageCancel, boolean messageTree) { --- old/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalComboBoxButton.java 2014-12-09 10:07:12.881095870 -0800 +++ new/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalComboBoxButton.java 2014-12-09 10:07:12.701095862 -0800 @@ -161,6 +161,7 @@ iconOnly = onlyIcon; } + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { return false; } --- old/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalRootPaneUI.java 2014-12-09 10:07:13.329095890 -0800 +++ new/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalRootPaneUI.java 2014-12-09 10:07:13.169095883 -0800 @@ -441,6 +441,7 @@ * @param the Container for which this layout manager is being used * @return a Dimension object containing the layout's preferred size */ + @SuppressWarnings("deprecation") public Dimension preferredLayoutSize(Container parent) { Dimension cpd, mbd, tpd; int cpWidth = 0; @@ -493,6 +494,7 @@ * @param the Container for which this layout manager is being used * @return a Dimension object containing the layout's minimum size */ + @SuppressWarnings("deprecation") public Dimension minimumLayoutSize(Container parent) { Dimension cpd, mbd, tpd; int cpWidth = 0; @@ -544,6 +546,7 @@ * @param the Container for which this layout manager is being used * @return a Dimension object containing the layout's maximum size */ + @SuppressWarnings("deprecation") public Dimension maximumLayoutSize(Container target) { Dimension cpd, mbd, tpd; int cpWidth = Integer.MAX_VALUE; @@ -607,6 +610,7 @@ * * @param the Container for which this layout manager is being used */ + @SuppressWarnings("deprecation") public void layoutContainer(Container parent) { JRootPane root = (JRootPane) parent; Rectangle b = root.getBounds(); --- old/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalSplitPaneDivider.java 2014-12-09 10:07:13.785095910 -0800 +++ new/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalSplitPaneDivider.java 2014-12-09 10:07:13.637095903 -0800 @@ -185,6 +185,7 @@ } // Don't want the button to participate in focus traversable. + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { return false; } @@ -294,6 +295,7 @@ } // Don't want the button to participate in focus traversable. + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { return false; } --- old/src/java.desktop/share/classes/javax/swing/table/JTableHeader.java 2014-12-09 10:07:14.225095929 -0800 +++ new/src/java.desktop/share/classes/javax/swing/table/JTableHeader.java 2014-12-09 10:07:14.073095923 -0800 @@ -1427,6 +1427,7 @@ } } + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { AccessibleContext ac = getCurrentAccessibleContext(); if (ac instanceof AccessibleComponent) { --- old/src/java.desktop/share/classes/javax/swing/text/GlyphPainter1.java 2014-12-09 10:07:14.741095952 -0800 +++ new/src/java.desktop/share/classes/javax/swing/text/GlyphPainter1.java 2014-12-09 10:07:14.549095944 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 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 @@ -218,6 +218,7 @@ return p1; } + @SuppressWarnings("deprecation") void sync(GlyphView v) { Font f = v.getFont(); if ((metrics == null) || (! f.equals(metrics.getFont()))) { --- old/src/java.desktop/share/classes/javax/swing/text/StyleContext.java 2014-12-09 10:07:15.293095977 -0800 +++ new/src/java.desktop/share/classes/javax/swing/text/StyleContext.java 2014-12-09 10:07:15.085095967 -0800 @@ -279,6 +279,7 @@ * @param f the font * @return the metrics */ + @SuppressWarnings("deprecation") public FontMetrics getFontMetrics(Font f) { // The Toolkit implementations cache, so we just forward // to the default toolkit. --- old/src/java.desktop/share/classes/javax/swing/text/html/AccessibleHTML.java 2014-12-09 10:07:15.797095999 -0800 +++ new/src/java.desktop/share/classes/javax/swing/text/html/AccessibleHTML.java 2014-12-09 10:07:15.637095992 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 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 @@ -916,6 +916,7 @@ * @return the zero-based index of the character under Point p; if * Point is invalid returns -1. */ + @SuppressWarnings("deprecation") public int getIndexAtPoint(Point p) { View v = getView(); if (v != null) { --- old/src/java.desktop/share/classes/javax/swing/text/html/FormView.java 2014-12-09 10:07:16.301096021 -0800 +++ new/src/java.desktop/share/classes/javax/swing/text/html/FormView.java 2014-12-09 10:07:16.137096014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -599,6 +599,7 @@ * @param point associated with the mouse click. * @return the image data. */ + @SuppressWarnings("deprecation") private String getImageData(Point point) { String mouseCoords = point.x + ":" + point.y; @@ -816,6 +817,7 @@ * URLEncoder.encode() method before being added to the * buffer. */ + @SuppressWarnings("deprecation") private void appendBuffer(StringBuilder buffer, String name, String value) { if (buffer.length() > 0) { buffer.append('&'); --- old/src/java.desktop/share/classes/javax/swing/text/html/FrameView.java 2014-12-09 10:07:16.805096044 -0800 +++ new/src/java.desktop/share/classes/javax/swing/text/html/FrameView.java 2014-12-09 10:07:16.649096037 -0800 @@ -218,6 +218,7 @@ * the scrolling attribute. If not defined, the default is "auto" which * maps to the scrollbar's being displayed as needed. */ + @SuppressWarnings("deprecation") private void createScrollPane() { AttributeSet attributes = getElement().getAttributes(); String scrolling = (String)attributes.getAttribute(HTML.Attribute.SCROLLING); --- old/src/java.desktop/share/classes/javax/swing/text/html/HiddenTagView.java 2014-12-09 10:07:17.301096066 -0800 +++ new/src/java.desktop/share/classes/javax/swing/text/html/HiddenTagView.java 2014-12-09 10:07:17.117096057 -0800 @@ -129,6 +129,7 @@ // local methods + @SuppressWarnings("deprecation") void updateYAlign(Font font) { Container c = getContainer(); FontMetrics fm = (c != null) ? c.getFontMetrics(font) : --- old/src/java.desktop/share/classes/javax/swing/text/html/IsindexView.java 2014-12-09 10:07:17.785096087 -0800 +++ new/src/java.desktop/share/classes/javax/swing/text/html/IsindexView.java 2014-12-09 10:07:17.597096079 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2000, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -88,6 +88,7 @@ * contents of the JTextField. The search * contents are URLEncoded. */ + @SuppressWarnings("deprecation") public void actionPerformed(ActionEvent evt) { String data = textField.getText(); --- old/src/java.desktop/share/classes/javax/swing/text/html/LineView.java 2014-12-09 10:07:18.249096107 -0800 +++ new/src/java.desktop/share/classes/javax/swing/text/html/LineView.java 2014-12-09 10:07:18.081096100 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 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 @@ -161,6 +161,7 @@ /** * Returns the location for the tab. */ + @SuppressWarnings("deprecation") protected float getPreTab(float x, int tabOffset) { Document d = getDocument(); View v = getViewAtPosition(tabOffset, null); --- old/src/java.desktop/share/classes/javax/swing/text/html/StyleSheet.java 2014-12-09 10:07:18.713096128 -0800 +++ new/src/java.desktop/share/classes/javax/swing/text/html/StyleSheet.java 2014-12-09 10:07:18.557096121 -0800 @@ -2562,6 +2562,7 @@ } } + @SuppressWarnings("deprecation") void paint(Graphics g, float x, float y, float w, float h, View v) { Rectangle clip = g.getClipRect(); if (clip != null) { --- old/src/java.desktop/share/classes/sun/applet/AppletPanel.java 2014-12-09 10:07:19.201096150 -0800 +++ new/src/java.desktop/share/classes/sun/applet/AppletPanel.java 2014-12-09 10:07:19.033096142 -0800 @@ -234,6 +234,7 @@ * Minimum size */ @Override + @SuppressWarnings("deprecation") public Dimension minimumSize() { return new Dimension(defaultAppletSize.width, defaultAppletSize.height); @@ -243,6 +244,7 @@ * Preferred size */ @Override + @SuppressWarnings("deprecation") public Dimension preferredSize() { return new Dimension(currentAppletSize.width, currentAppletSize.height); @@ -700,6 +702,7 @@ * applet event processing so that it can be gracefully interrupted from * things like HotJava. */ + @SuppressWarnings("deprecation") private void runLoader() { if (status != APPLET_DISPOSE) { showAppletStatus("notdisposed"); --- old/src/java.desktop/share/classes/sun/applet/AppletProps.java 2014-12-09 10:07:19.689096171 -0800 +++ new/src/java.desktop/share/classes/sun/applet/AppletProps.java 2014-12-09 10:07:19.521096164 -0800 @@ -44,6 +44,7 @@ TextField proxyPort; Choice accessMode; + @SuppressWarnings("deprecation") AppletProps() { setTitle(amh.getMessage("title")); Panel p = new Panel(); @@ -100,6 +101,7 @@ } } + @SuppressWarnings("deprecation") void apply() { String proxyHostValue = proxyHost.getText().trim(); String proxyPortValue = proxyPort.getText().trim(); @@ -172,6 +174,7 @@ } } + @SuppressWarnings("deprecation") public boolean action(Event evt, Object obj) { if (amh.getMessage("button.apply").equals(obj)) { apply(); @@ -197,6 +200,7 @@ /* Dialog class to display property-related errors to user */ @SuppressWarnings("serial") // JDK implementation class class AppletPropsErrorDialog extends Dialog { + @SuppressWarnings("deprecation") public AppletPropsErrorDialog(Frame parent, String title, String message, String buttonText) { super(parent, title, true); @@ -212,6 +216,7 @@ fRect.y + ((fRect.height - dDim.height) / 2)); } + @SuppressWarnings("deprecation") public boolean action(Event event, Object object) { hide(); dispose(); --- old/src/java.desktop/share/classes/sun/applet/AppletSecurity.java 2014-12-09 10:07:20.149096192 -0800 +++ new/src/java.desktop/share/classes/sun/applet/AppletSecurity.java 2014-12-09 10:07:19.973096184 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 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 @@ -121,6 +121,7 @@ /** * get the current (first) instance of an AppletClassLoader on the stack. */ + @SuppressWarnings("deprecation") private AppletClassLoader currentAppletClassLoader() { // try currentClassLoader first @@ -308,6 +309,7 @@ * @exception SecurityException if the caller does not have * permission to access the AWT event queue. */ + @SuppressWarnings("deprecation") public void checkAwtEventQueueAccess() { AppContext appContext = AppContext.getAppContext(); AppletClassLoader appletClassLoader = currentAppletClassLoader(); --- old/src/java.desktop/share/classes/sun/applet/AppletViewer.java 2014-12-09 10:07:20.641096213 -0800 +++ new/src/java.desktop/share/classes/sun/applet/AppletViewer.java 2014-12-09 10:07:20.453096205 -0800 @@ -48,6 +48,7 @@ /** * Create the tag frame. */ + @SuppressWarnings("deprecation") TextFrame(int x, int y, String title, String text) { setTitle(title); TextArea txt = new TextArea(20, 60); @@ -156,6 +157,7 @@ /** * Create the applet viewer. */ + @SuppressWarnings("deprecation") public AppletViewer(int x, int y, URL doc, Hashtable atts, PrintStream statusMsgStream, AppletViewerFactory factory) { this.factory = factory; @@ -228,6 +230,7 @@ } @Override + @SuppressWarnings("deprecation") public void appletStateChanged(AppletEvent evt) { AppletPanel src = (AppletPanel)evt.getSource(); @@ -594,6 +597,7 @@ /** * Make sure the atrributes are uptodate. */ + @SuppressWarnings("deprecation") public void updateAtts() { Dimension d = panel.size(); Insets in = panel.insets(); @@ -648,6 +652,7 @@ /** * Save the applet to a well known file (for now) as a serialized object */ + @SuppressWarnings("deprecation") void appletSave() { AccessController.doPrivileged(new PrivilegedAction() { @@ -699,6 +704,7 @@ /** * Clone the viewer and the applet. */ + @SuppressWarnings("deprecation") void appletClone() { Point p = location(); updateAtts(); @@ -711,6 +717,7 @@ /** * Show the applet tag. */ + @SuppressWarnings("deprecation") void appletTag() { ByteArrayOutputStream out = new ByteArrayOutputStream(); updateAtts(); @@ -724,6 +731,7 @@ /** * Show the applet info. */ + @SuppressWarnings("deprecation") void appletInfo() { String str = panel.applet.getAppletInfo(); if (str == null) { --- old/src/java.desktop/share/classes/sun/awt/AppContext.java 2014-12-09 10:07:21.157096236 -0800 +++ new/src/java.desktop/share/classes/sun/awt/AppContext.java 2014-12-09 10:07:20.965096228 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 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 @@ -413,6 +413,7 @@ * contained within this AppContext * @since 1.2 */ + @SuppressWarnings("deprecation") public void dispose() throws IllegalThreadStateException { // Check to be sure that the current Thread isn't in this AppContext if (this.threadGroup.parentOf(Thread.currentThread().getThreadGroup())) { --- old/src/java.desktop/share/classes/sun/awt/DebugSettings.java 2014-12-09 10:07:21.789096264 -0800 +++ new/src/java.desktop/share/classes/sun/awt/DebugSettings.java 2014-12-09 10:07:21.573096255 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 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 @@ -146,6 +146,7 @@ /* * Sets up default property values */ + @SuppressWarnings("deprecation") private void loadDefaultProperties() { // is there a more inefficient way to setup default properties? // maybe, but this has got to be close to 100% non-optimal --- old/src/java.desktop/share/classes/sun/awt/LightweightFrame.java 2014-12-09 10:07:22.277096286 -0800 +++ new/src/java.desktop/share/classes/sun/awt/LightweightFrame.java 2014-12-09 10:07:22.093096278 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 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 @@ -88,6 +88,7 @@ @Override public final void toFront() {} @Override public final void toBack() {} + @SuppressWarnings("deprecation") @Override public void addNotify() { synchronized (getTreeLock()) { if (getPeer() == null) { @@ -114,6 +115,7 @@ * @param activate if true, activates the frame; * otherwise, deactivates the frame */ + @SuppressWarnings("deprecation") public void emulateActivation(boolean activate) { ((FramePeer)getPeer()).emulateActivation(activate); } --- old/src/java.desktop/share/classes/sun/awt/SunToolkit.java 2014-12-09 10:07:22.773096308 -0800 +++ new/src/java.desktop/share/classes/sun/awt/SunToolkit.java 2014-12-09 10:07:22.597096300 -0800 @@ -713,6 +713,7 @@ } + @SuppressWarnings("deprecation") static final SoftCache imgCache = new SoftCache(); static Image getImageFromHash(Toolkit tk, URL url) { --- old/src/java.desktop/share/classes/sun/awt/datatransfer/DataTransferer.java 2014-12-09 10:07:23.281096330 -0800 +++ new/src/java.desktop/share/classes/sun/awt/datatransfer/DataTransferer.java 2014-12-09 10:07:23.101096322 -0800 @@ -717,6 +717,7 @@ * Primary translation function for translating a Transferable into * a byte array, given a source DataFlavor and target format. */ + @SuppressWarnings("deprecation") public byte[] translateTransferable(Transferable contents, DataFlavor flavor, long format) throws IOException @@ -1278,6 +1279,7 @@ * an InputStream into an Object, given a source format and a target * DataFlavor. */ + @SuppressWarnings("deprecation") public Object translateStream(InputStream str, DataFlavor flavor, long format, Transferable localeTransferable) throws IOException --- old/src/java.desktop/share/classes/sun/awt/image/GifImageDecoder.java 2014-12-09 10:07:23.809096354 -0800 +++ new/src/java.desktop/share/classes/sun/awt/image/GifImageDecoder.java 2014-12-09 10:07:23.629096346 -0800 @@ -114,7 +114,7 @@ /** * produce an image from the stream. */ - @SuppressWarnings("fallthrough") + @SuppressWarnings({"fallthrough", "deprecation"}) public void produceImage() throws IOException, ImageFormatException { try { readHeader(); --- old/src/java.desktop/share/classes/sun/awt/image/MultiResolutionToolkitImage.java 2014-12-09 10:07:24.309096376 -0800 +++ new/src/java.desktop/share/classes/sun/awt/image/MultiResolutionToolkitImage.java 2014-12-09 10:07:24.117096367 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 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 @@ -59,6 +59,7 @@ private static class ObserverCache { + @SuppressWarnings("deprecation") static final SoftCache INSTANCE = new SoftCache(); } --- old/src/java.desktop/share/classes/sun/print/PSPrinterJob.java 2014-12-09 10:07:24.729096394 -0800 +++ new/src/java.desktop/share/classes/sun/print/PSPrinterJob.java 2014-12-09 10:07:24.581096388 -0800 @@ -1214,6 +1214,7 @@ * of distinct PS fonts needed to draw this text. This saves us * doing this processing one extra time. */ + @SuppressWarnings("deprecation") protected int platformFontCount(Font font, String str) { if (mFontProps == null) { return 0; @@ -1228,6 +1229,7 @@ return (psFonts == null) ? 0 : psFonts.length; } + @SuppressWarnings("deprecation") protected boolean textOut(Graphics g, String str, float x, float y, Font mLastFont, FontRenderContext frc, float width) { @@ -2123,6 +2125,7 @@ * @param w the width of the applet panel in the browser window * @param h the width of the applet panel in the browser window */ + @SuppressWarnings("deprecation") public PluginPrinter(Component applet, PrintStream stream, int x, int y, int w, int h) { --- old/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java 2014-12-09 10:07:25.193096415 -0800 +++ new/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java 2014-12-09 10:07:25.021096407 -0800 @@ -745,6 +745,7 @@ * return a PageFormat corresponding to the updated attributes, * or null if the user cancelled the dialog. */ + @SuppressWarnings("deprecation") public PageFormat pageDialog(final PrintRequestAttributeSet attributes) throws HeadlessException { if (GraphicsEnvironment.isHeadless()) { --- old/src/java.desktop/share/classes/sun/print/ServiceDialog.java 2014-12-09 10:07:25.665096436 -0800 +++ new/src/java.desktop/share/classes/sun/print/ServiceDialog.java 2014-12-09 10:07:25.497096428 -0800 @@ -792,6 +792,7 @@ return label; } + @SuppressWarnings("deprecation") public void actionPerformed(ActionEvent e) { Object source = e.getSource(); --- old/src/java.desktop/share/classes/sun/swing/FilePane.java 2014-12-09 10:07:26.113096456 -0800 +++ new/src/java.desktop/share/classes/sun/swing/FilePane.java 2014-12-09 10:07:25.961096449 -0800 @@ -1355,6 +1355,7 @@ /** * @param index visual index of the file to be edited */ + @SuppressWarnings("deprecation") private void editFileName(int index) { JFileChooser chooser = getFileChooser(); File currentDirectory = chooser.getCurrentDirectory(); @@ -1521,6 +1522,7 @@ } + @SuppressWarnings("deprecation") void setFileSelected() { if (getFileChooser().isMultiSelectionEnabled() && !isDirectorySelected()) { File[] files = getFileChooser().getSelectedFiles(); // Should be selected --- old/src/java.desktop/share/classes/sun/swing/JLightweightFrame.java 2014-12-09 10:07:26.589096477 -0800 +++ new/src/java.desktop/share/classes/sun/swing/JLightweightFrame.java 2014-12-09 10:07:26.429096470 -0800 @@ -241,6 +241,7 @@ } @Override + @SuppressWarnings("deprecation") public void notifyDisplayChanged(final int scaleFactor) { if (scaleFactor != this.scaleFactor) { if (!copyBufferEnabled) content.paintLock(); @@ -260,6 +261,7 @@ } @Override + @SuppressWarnings("deprecation") public void addNotify() { super.addNotify(); if (getPeer() instanceof DisplayChangedListener) { --- old/src/java.desktop/share/classes/sun/swing/SwingUtilities2.java 2014-12-09 10:07:27.109096500 -0800 +++ new/src/java.desktop/share/classes/sun/swing/SwingUtilities2.java 2014-12-09 10:07:26.909096491 -0800 @@ -358,6 +358,7 @@ * @param c Graphics Graphics * @param font Font to get FontMetrics for */ + @SuppressWarnings("deprecation") public static FontMetrics getFontMetrics(JComponent c, Graphics g, Font font) { if (c != null) { @@ -1706,6 +1707,7 @@ * This is not a general-purpose method and is here only to permit * sharing code. */ + @SuppressWarnings("deprecation") public static boolean tabbedPaneChangeFocusTo(Component comp) { if (comp != null) { if (comp.isFocusTraversable()) { --- old/src/java.desktop/unix/classes/sun/awt/X11/InfoWindow.java 2014-12-09 10:07:27.617096522 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/InfoWindow.java 2014-12-09 10:07:27.461096515 -0800 @@ -71,6 +71,7 @@ } // Must be executed on EDT. + @SuppressWarnings("deprecation") protected void show(Point corner, int indent) { assert SunToolkit.isDispatchThreadForAppContext(this); @@ -98,6 +99,7 @@ closer.schedule(); } + @SuppressWarnings("deprecation") public void hide() { closer.close(); } @@ -125,6 +127,7 @@ } // WARNING: this method may be executed on Toolkit thread. + @SuppressWarnings("deprecation") private void doClose() { SunToolkit.executeOnEventHandlerThread(InfoWindow.this, new Runnable() { public void run() { --- old/src/java.desktop/unix/classes/sun/awt/X11/ListHelper.java 2014-12-09 10:07:28.069096542 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/ListHelper.java 2014-12-09 10:07:27.905096535 -0800 @@ -225,6 +225,7 @@ return index == focusedIndex; } + @SuppressWarnings("deprecation") void setFont(Font newFont) { if (newFont != font) { font = newFont; --- old/src/java.desktop/unix/classes/sun/awt/X11/XBaseMenuWindow.java 2014-12-09 10:07:28.553096564 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XBaseMenuWindow.java 2014-12-09 10:07:28.373096556 -0800 @@ -326,6 +326,7 @@ * check for adding duplicate items * @param item item to add */ + @SuppressWarnings("deprecation") public void addItem(MenuItem item) { XMenuItemPeer mp = (XMenuItemPeer)item.getPeer(); if (mp != null) { --- old/src/java.desktop/unix/classes/sun/awt/X11/XChoicePeer.java 2014-12-09 10:07:29.013096584 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XChoicePeer.java 2014-12-09 10:07:28.841096576 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 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 @@ -499,6 +499,7 @@ } // Stolen from TinyChoicePeer + @SuppressWarnings("deprecation") public Dimension getMinimumSize() { // TODO: move this impl into ListHelper? FontMetrics fm = getFontMetrics(target.getFont()); --- old/src/java.desktop/unix/classes/sun/awt/X11/XComponentPeer.java 2014-12-09 10:07:29.717096615 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XComponentPeer.java 2014-12-09 10:07:29.481096605 -0800 @@ -167,6 +167,7 @@ return System.getProperty("sun.awt.X11.XComponentPeer.reparentNotSupported", "false").equals("false"); } + @SuppressWarnings("deprecation") public boolean isObscured() { Container container = (target instanceof Container) ? (Container)target : target.getParent(); @@ -279,6 +280,7 @@ } // TODO: consider moving it to KeyboardFocusManagerPeerImpl + @SuppressWarnings("deprecation") final public boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time, CausedFocusEvent.Cause cause) @@ -388,6 +390,7 @@ /** * @see java.awt.peer.ComponentPeer */ + @SuppressWarnings("deprecation") public void setEnabled(final boolean value) { if (enableLog.isLoggable(PlatformLogger.Level.FINE)) { enableLog.fine("{0}ing {1}", (value ? "Enabl" : "Disabl"), this); @@ -1324,6 +1327,7 @@ } } + @SuppressWarnings("deprecation") private void addTree(Collection order, Set set, Container cont) { for (int i = 0; i < cont.getComponentCount(); i++) { Component comp = cont.getComponent(i); @@ -1344,6 +1348,7 @@ /****** DropTargetPeer implementation ********************/ + @SuppressWarnings("deprecation") public void addDropTarget(DropTarget dt) { Component comp = target; while(!(comp == null || comp instanceof Window)) { @@ -1358,6 +1363,7 @@ } } + @SuppressWarnings("deprecation") public void removeDropTarget(DropTarget dt) { Component comp = target; while(!(comp == null || comp instanceof Window)) { --- old/src/java.desktop/unix/classes/sun/awt/X11/XDragSourceContextPeer.java 2014-12-09 10:07:30.197096636 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XDragSourceContextPeer.java 2014-12-09 10:07:30.029096629 -0800 @@ -110,6 +110,7 @@ return theInstance; } + @SuppressWarnings("deprecation") protected void startDrag(Transferable transferable, long[] formats, Map formatMap) { Component component = getTrigger().getComponent(); --- old/src/java.desktop/unix/classes/sun/awt/X11/XDropTargetContextPeer.java 2014-12-09 10:07:30.769096662 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XDropTargetContextPeer.java 2014-12-09 10:07:30.573096653 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 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 @@ -188,6 +188,7 @@ // If source is an XEmbedCanvasPeer, passes the event to it for processing and // return true if the event is forwarded to the XEmbed child. // Otherwise, does nothing and return false. + @SuppressWarnings("deprecation") private boolean processSunDropTargetEvent(SunDropTargetEvent event) { Object source = event.getSource(); --- old/src/java.desktop/unix/classes/sun/awt/X11/XEmbedChildProxyPeer.java 2014-12-09 10:07:31.289096685 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XEmbedChildProxyPeer.java 2014-12-09 10:07:31.121096677 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 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 @@ -166,6 +166,7 @@ XToolkit.postEvent(XToolkit.targetToAppContext(proxy), event); } + @SuppressWarnings("deprecation") boolean simulateMotifRequestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time) { --- old/src/java.desktop/unix/classes/sun/awt/X11/XEmbeddedFrame.java 2014-12-09 10:07:31.777096706 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XEmbeddedFrame.java 2014-12-09 10:07:31.625096700 -0800 @@ -61,6 +61,7 @@ } } + @SuppressWarnings("deprecation") public void addNotify() { if (getPeer() == null) { @@ -77,6 +78,7 @@ /* * The method shouldn't be called in case of active XEmbed. */ + @SuppressWarnings("deprecation") public boolean traverseIn(boolean direction) { XEmbeddedFramePeer peer = (XEmbeddedFramePeer)getPeer(); if (peer != null) { @@ -89,6 +91,7 @@ return false; } + @SuppressWarnings("deprecation") protected boolean traverseOut(boolean direction) { XEmbeddedFramePeer xefp = (XEmbeddedFramePeer) getPeer(); if (direction == FORWARD) { @@ -103,6 +106,7 @@ /* * The method shouldn't be called in case of active XEmbed. */ + @SuppressWarnings("deprecation") public void synthesizeWindowActivation(boolean doActivate) { XEmbeddedFramePeer peer = (XEmbeddedFramePeer)getPeer(); if (peer != null) { @@ -114,12 +118,14 @@ } } + @SuppressWarnings("deprecation") public void registerAccelerator(AWTKeyStroke stroke) { XEmbeddedFramePeer xefp = (XEmbeddedFramePeer) getPeer(); if (xefp != null) { xefp.registerAccelerator(stroke); } } + @SuppressWarnings("deprecation") public void unregisterAccelerator(AWTKeyStroke stroke) { XEmbeddedFramePeer xefp = (XEmbeddedFramePeer) getPeer(); if (xefp != null) { --- old/src/java.desktop/unix/classes/sun/awt/X11/XEmbeddingContainer.java 2014-12-09 10:07:32.357096732 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XEmbeddingContainer.java 2014-12-09 10:07:32.193096725 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 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 @@ -46,6 +46,7 @@ XToolkit.removeEventDispatcher(embedder.getWindow(), this); } + @SuppressWarnings("deprecation") void add(long child) { if (checkXEmbed(child)) { Component proxy = createChildProxy(child); --- old/src/java.desktop/unix/classes/sun/awt/X11/XFileDialogPeer.java 2014-12-09 10:07:32.785096751 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XFileDialogPeer.java 2014-12-09 10:07:32.633096744 -0800 @@ -135,6 +135,7 @@ this.target = target; } + @SuppressWarnings("deprecation") private void init(FileDialog target) { fileDialog = target; //new Dialog(target, target.getTitle(), false); this.title = target.getTitle(); @@ -414,6 +415,7 @@ /** * handle the cancel event */ + @SuppressWarnings("deprecation") void handleCancel() { KeyboardFocusManager.getCurrentKeyboardFocusManager() .removeKeyEventDispatcher(this); @@ -435,6 +437,7 @@ /** * handle the quit event */ + @SuppressWarnings("deprecation") void handleQuitButton() { dir = null; file = null; @@ -444,6 +447,7 @@ /** * set the entry of the new dir with f */ + @SuppressWarnings("deprecation") void setFilterEntry(String d, String f) { File fe = new File(d); @@ -638,6 +642,7 @@ } } + @SuppressWarnings("deprecation") public boolean dispatchKeyEvent(KeyEvent keyEvent) { int id = keyEvent.getID(); int keyCode = keyEvent.getKeyCode(); @@ -774,6 +779,7 @@ } // 03/02/2005 b5097243 Pressing 'ESC' on a file dlg does not dispose the dlg on Xtoolkit + @SuppressWarnings("deprecation") public void setVisible(boolean b){ if (fileDialog == null) { init(target); @@ -852,6 +858,7 @@ public final static int VERTICAL = 1; int orientation; + @SuppressWarnings("deprecation") public Separator(int length, int thickness, int orient) { super(); orientation = orient; @@ -863,6 +870,7 @@ } } + @SuppressWarnings("deprecation") public void paint(Graphics g) { int x1, y1, x2, y2; Rectangle bbox = bounds(); --- old/src/java.desktop/unix/classes/sun/awt/X11/XFramePeer.java 2014-12-09 10:07:33.265096772 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XFramePeer.java 2014-12-09 10:07:33.113096765 -0800 @@ -108,6 +108,7 @@ setExtendedState(state); } + @SuppressWarnings("deprecation") public void setMenuBar(MenuBar mb) { // state_lock should always be the second after awt_lock XToolkit.awtLock(); --- old/src/java.desktop/unix/classes/sun/awt/X11/XInputMethod.java 2014-12-09 10:07:33.713096792 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XInputMethod.java 2014-12-09 10:07:33.553096785 -0800 @@ -137,6 +137,7 @@ XToolkit.awtUnlock(); } + @SuppressWarnings("deprecation") long getCurrentParentWindow() { return ((XWindow)clientComponentWindow.getPeer()).getContentWindow(); } --- old/src/java.desktop/unix/classes/sun/awt/X11/XMenuBarPeer.java 2014-12-09 10:07:34.137096811 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XMenuBarPeer.java 2014-12-09 10:07:33.985096804 -0800 @@ -163,6 +163,7 @@ postPaintEvent(); } + @SuppressWarnings("deprecation") public void addHelpMenu(Menu m) { XMenuPeer mp = (XMenuPeer)m.getPeer(); synchronized(getMenuTreeLock()) { @@ -179,6 +180,7 @@ /** * called from XFramePeer.setMenuBar */ + @SuppressWarnings("deprecation") public void init(Frame frame) { this.target = frame; this.framePeer = (XFramePeer)frame.getPeer(); --- old/src/java.desktop/unix/classes/sun/awt/X11/XMouseInfoPeer.java 2014-12-09 10:07:34.565096830 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XMouseInfoPeer.java 2014-12-09 10:07:34.413096823 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 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 @@ -75,6 +75,7 @@ return 0; } + @SuppressWarnings("deprecation") public boolean isWindowUnderMouse(Window w) { long display = XToolkit.getDisplay(); --- old/src/java.desktop/unix/classes/sun/awt/X11/XPanelPeer.java 2014-12-09 10:07:35.001096849 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XPanelPeer.java 2014-12-09 10:07:34.845096842 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 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 @@ -76,6 +76,7 @@ } + @SuppressWarnings("deprecation") public void setBackground(Color c) { Component comp; int i; @@ -101,6 +102,7 @@ setForegroundForHierarchy((Container) target, c); } + @SuppressWarnings("deprecation") private void setForegroundForHierarchy(Container cont, Color c) { synchronized(target.getTreeLock()) { int n = cont.getComponentCount(); --- old/src/java.desktop/unix/classes/sun/awt/X11/XRepaintArea.java 2014-12-09 10:07:35.457096869 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XRepaintArea.java 2014-12-09 10:07:35.293096862 -0800 @@ -55,6 +55,7 @@ /** * Calls Component.paint(Graphics) with given Graphics. */ + @SuppressWarnings("deprecation") protected void paintComponent(Component comp, Graphics g) { if (comp != null) { final XComponentPeer peer = (XComponentPeer) comp.getPeer(); --- old/src/java.desktop/unix/classes/sun/awt/X11/XScrollPanePeer.java 2014-12-09 10:07:35.881096888 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XScrollPanePeer.java 2014-12-09 10:07:35.721096881 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 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 @@ -141,6 +141,7 @@ repaint(); } + @SuppressWarnings("deprecation") Dimension getChildSize() { ScrollPane sp = (ScrollPane)target; if (sp.countComponents() > 0) { @@ -151,6 +152,7 @@ } } + @SuppressWarnings("deprecation") boolean setScrollbarSpace() { ScrollPane sp = (ScrollPane)target; boolean changed = false; @@ -268,6 +270,7 @@ /** * Scroll the contents to position x, y */ + @SuppressWarnings("deprecation") void scroll(int x, int y, int flag, int type) { checkSecurity(); ScrollPane sp = (ScrollPane)target; @@ -569,6 +572,7 @@ * ToDo(aim): needs to query native motif for more accurate size and * color information. */ + @SuppressWarnings("deprecation") public void print(Graphics g) { ScrollPane sp = (ScrollPane)target; Dimension d = sp.size(); --- old/src/java.desktop/unix/classes/sun/awt/X11/XScrollbarPeer.java 2014-12-09 10:07:36.325096908 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XScrollbarPeer.java 2014-12-09 10:07:36.173096901 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2002, 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 @@ -43,6 +43,7 @@ DEFAULT_WIDTH_LINUX = XToolkit.getUIDefaults().getInt("ScrollBar.defaultWidth"); } + @SuppressWarnings("deprecation") public void preInit(XCreateWindowParams params) { super.preInit(params); Scrollbar target = (Scrollbar) this.target; --- old/src/java.desktop/unix/classes/sun/awt/X11/XTextAreaPeer.java 2014-12-09 10:07:36.777096928 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XTextAreaPeer.java 2014-12-09 10:07:36.625096921 -0800 @@ -1164,6 +1164,7 @@ } @Override + @SuppressWarnings("deprecation") public ComponentPeer getPeer() { return (ComponentPeer) (xwin); } --- old/src/java.desktop/unix/classes/sun/awt/X11/XTextFieldPeer.java 2014-12-09 10:07:37.253096949 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XTextFieldPeer.java 2014-12-09 10:07:37.089096941 -0800 @@ -208,6 +208,7 @@ * @see java.awt.peer.TextComponentPeer */ @Override + @SuppressWarnings("deprecation") public String getText() { return xtext.getText(); } @@ -564,6 +565,7 @@ } @Override + @SuppressWarnings("deprecation") public void actionPerformed( ActionEvent actionEvent ) { peer.postEvent(new ActionEvent(peer.target, ActionEvent.ACTION_PERFORMED, @@ -598,6 +600,7 @@ } @Override + @SuppressWarnings("deprecation") public ComponentPeer getPeer() { return (ComponentPeer) peer; } --- old/src/java.desktop/unix/classes/sun/awt/X11/XToolkit.java 2014-12-09 10:07:37.701096969 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XToolkit.java 2014-12-09 10:07:37.545096962 -0800 @@ -2429,12 +2429,14 @@ awtUnlock(); } } + @SuppressWarnings("deprecation") public void grab(Window w) { if (w.getPeer() != null) { ((XWindowPeer)w.getPeer()).setGrab(true); } } + @SuppressWarnings("deprecation") public void ungrab(Window w) { if (w.getPeer() != null) { ((XWindowPeer)w.getPeer()).setGrab(false); --- old/src/java.desktop/unix/classes/sun/awt/X11/XTrayIconPeer.java 2014-12-09 10:07:38.165096989 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XTrayIconPeer.java 2014-12-09 10:07:38.005096982 -0800 @@ -347,6 +347,7 @@ } // It's synchronized with disposal by EDT. + @SuppressWarnings("deprecation") public void showPopupMenu(int x, int y) { if (isDisposed()) return; @@ -415,6 +416,7 @@ canvas.addMouseMotionListener(eventProxy); } + @SuppressWarnings("deprecation") long getWindow() { return ((XEmbeddedFramePeer)eframe.getPeer()).getWindow(); } --- old/src/java.desktop/unix/classes/sun/awt/X11/XWindow.java 2014-12-09 10:07:38.629097010 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XWindow.java 2014-12-09 10:07:38.465097002 -0800 @@ -282,6 +282,7 @@ return reparented; } + @SuppressWarnings("deprecation") static long getParentWindowID(Component target) { ComponentPeer peer = target.getParent().getPeer(); @@ -298,6 +299,7 @@ } + @SuppressWarnings("deprecation") static XWindow getParentXWindowObject(Component target) { if (target == null) return null; Component temp = target.getParent(); @@ -374,6 +376,7 @@ target.getFont()); } + @SuppressWarnings("deprecation") public FontMetrics getFontMetrics(Font font) { return Toolkit.getDefaultToolkit().getFontMetrics(font); } --- old/src/java.desktop/unix/classes/sun/awt/X11/XWindowPeer.java 2014-12-09 10:07:39.077097029 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XWindowPeer.java 2014-12-09 10:07:38.921097023 -0800 @@ -210,6 +210,7 @@ private static native String getLocalHostname(); private static native int getJvmPID(); + @SuppressWarnings("deprecation") void postInit(XCreateWindowParams params) { super.postInit(params); @@ -400,6 +401,7 @@ } } + @SuppressWarnings("deprecation") public void recursivelySetIcon(java.util.List icons) { dumpIcons(winAttr.icons); setIconHints(icons); --- old/src/java.desktop/unix/classes/sun/awt/X11GraphicsDevice.java 2014-12-09 10:07:39.569097051 -0800 +++ new/src/java.desktop/unix/classes/sun/awt/X11GraphicsDevice.java 2014-12-09 10:07:39.409097044 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 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 @@ -325,6 +325,7 @@ return (isFullScreenSupported() && (getFullScreenWindow() != null)); } + @SuppressWarnings("deprecation") private static void enterFullScreenExclusive(Window w) { X11ComponentPeer peer = (X11ComponentPeer)w.getPeer(); if (peer != null) { @@ -333,6 +334,7 @@ } } + @SuppressWarnings("deprecation") private static void exitFullScreenExclusive(Window w) { X11ComponentPeer peer = (X11ComponentPeer)w.getPeer(); if (peer != null) { --- old/src/java.desktop/unix/classes/sun/java2d/opengl/GLXVolatileSurfaceManager.java 2014-12-09 10:07:40.001097070 -0800 +++ new/src/java.desktop/unix/classes/sun/java2d/opengl/GLXVolatileSurfaceManager.java 2014-12-09 10:07:39.849097064 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 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 @@ -73,6 +73,7 @@ * Create a pbuffer-based SurfaceData object (or init the backbuffer * of an existing window if this is a double buffered GraphicsConfig) */ + @SuppressWarnings("deprecation") protected SurfaceData initAcceleratedSurface() { SurfaceData sData; Component comp = vImg.getComponent();