# HG changeset patch # User darcy # Date 1418692817 28800 # Node ID b608ffcaed74f754d130985215aeb3e2b17ef7e6 # Parent f488c331f61012edbe783d88ce9ef9ee6d0cfad0 8066621: Suppress deprecation warnings in java.desktop module Reviewed-by: prr, alanb, ptbrunet diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/com/sun/beans/editors/ColorEditor.java --- a/jdk/src/java.desktop/share/classes/com/sun/beans/editors/ColorEditor.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/com/sun/beans/editors/ColorEditor.java Mon Dec 15 17:20:17 2014 -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()]); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/com/sun/beans/editors/FontEditor.java --- a/jdk/src/java.desktop/share/classes/com/sun/beans/editors/FontEditor.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/com/sun/beans/editors/FontEditor.java Mon Dec 15 17:20:17 2014 -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()]; diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java --- a/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java Mon Dec 15 17:20:17 2014 -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()) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifDesktopIconUI.java --- a/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifDesktopIconUI.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifDesktopIconUI.java Mon Dec 15 17:20:17 2014 -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; } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifInternalFrameTitlePane.java --- a/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifInternalFrameTitlePane.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifInternalFrameTitlePane.java Mon Dec 15 17:20:17 2014 -0800 @@ -242,6 +242,7 @@ setBorderPainted(false); } + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { return false; } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsDesktopPaneUI.java --- a/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsDesktopPaneUI.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsDesktopPaneUI.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java --- a/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java Mon Dec 15 17:20:17 2014 -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 diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsPopupWindow.java --- a/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsPopupWindow.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/WindowsPopupWindow.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/XPStyle.java --- a/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/XPStyle.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/com/sun/java/swing/plaf/windows/XPStyle.java Mon Dec 15 17:20:17 2014 -0800 @@ -700,6 +700,7 @@ setMaximumSize(new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE)); } + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { return false; } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/Canvas.java --- a/jdk/src/java.desktop/share/classes/java/awt/Canvas.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/Canvas.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/Container.java --- a/jdk/src/java.desktop/share/classes/java/awt/Container.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/Container.java Mon Dec 15 17:20:17 2014 -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); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/DefaultFocusTraversalPolicy.java --- a/jdk/src/java.desktop/share/classes/java/awt/DefaultFocusTraversalPolicy.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/DefaultFocusTraversalPolicy.java Mon Dec 15 17:20:17 2014 -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())) diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/DefaultKeyboardFocusManager.java --- a/jdk/src/java.desktop/share/classes/java/awt/DefaultKeyboardFocusManager.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/DefaultKeyboardFocusManager.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/Dialog.java --- a/jdk/src/java.desktop/share/classes/java/awt/Dialog.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/Dialog.java Mon Dec 15 17:20:17 2014 -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; diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/FileDialog.java --- a/jdk/src/java.desktop/share/classes/java/awt/FileDialog.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/FileDialog.java Mon Dec 15 17:20:17 2014 -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) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/FontMetrics.java --- a/jdk/src/java.desktop/share/classes/java/awt/FontMetrics.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/FontMetrics.java Mon Dec 15 17:20:17 2014 -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)); } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/Graphics.java --- a/jdk/src/java.desktop/share/classes/java/awt/Graphics.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/Graphics.java Mon Dec 15 17:20:17 2014 -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); } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/KeyboardFocusManager.java --- a/jdk/src/java.desktop/share/classes/java/awt/KeyboardFocusManager.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/KeyboardFocusManager.java Mon Dec 15 17:20:17 2014 -0800 @@ -3054,6 +3054,7 @@ return (wto != wfrom); } + @SuppressWarnings("deprecation") static Component getHeavyweight(Component comp) { if (comp == null || comp.getPeer() == null) { return null; diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/PopupMenu.java --- a/jdk/src/java.desktop/share/classes/java/awt/PopupMenu.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/PopupMenu.java Mon Dec 15 17:20:17 2014 -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; diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/ScrollPane.java --- a/jdk/src/java.desktop/share/classes/java/awt/ScrollPane.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/ScrollPane.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/SplashScreen.java --- a/jdk/src/java.desktop/share/classes/java/awt/SplashScreen.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/SplashScreen.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/Window.java --- a/jdk/src/java.desktop/share/classes/java/awt/Window.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/Window.java Mon Dec 15 17:20:17 2014 -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) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/datatransfer/StringSelection.java --- a/jdk/src/java.desktop/share/classes/java/awt/datatransfer/StringSelection.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/datatransfer/StringSelection.java Mon Dec 15 17:20:17 2014 -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 diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/datatransfer/SystemFlavorMap.java --- a/jdk/src/java.desktop/share/classes/java/awt/datatransfer/SystemFlavorMap.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/datatransfer/SystemFlavorMap.java Mon Dec 15 17:20:17 2014 -0800 @@ -624,6 +624,7 @@ return new ArrayList<>(returnValue); } + @SuppressWarnings("deprecation") private static Set convertMimeTypeToDataFlavors( final String baseType) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/java/awt/dnd/DropTarget.java --- a/jdk/src/java.desktop/share/classes/java/awt/dnd/DropTarget.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/java/awt/dnd/DropTarget.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/print/ServiceUI.java --- a/jdk/src/java.desktop/share/classes/javax/print/ServiceUI.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/print/ServiceUI.java Mon Dec 15 17:20:17 2014 -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, diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/DebugGraphics.java --- a/jdk/src/java.desktop/share/classes/javax/swing/DebugGraphics.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/DebugGraphics.java Mon Dec 15 17:20:17 2014 -0800 @@ -1453,6 +1453,7 @@ /** Returns a DebugGraphics for use in buffering window. */ + @SuppressWarnings("deprecation") private Graphics debugGraphics() { DebugGraphics debugGraphics; DebugGraphicsInfo info = info(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/JApplet.java --- a/jdk/src/java.desktop/share/classes/javax/swing/JApplet.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/JApplet.java Mon Dec 15 17:20:17 2014 -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(); } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/JColorChooser.java --- a/jdk/src/java.desktop/share/classes/javax/swing/JColorChooser.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/JColorChooser.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/JComponent.java --- a/jdk/src/java.desktop/share/classes/javax/swing/JComponent.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/JComponent.java Mon Dec 15 17:20:17 2014 -0800 @@ -5049,6 +5049,7 @@ this.paintingChild = paintingChild; } + @SuppressWarnings("deprecation") void _paintImmediately(int x, int y, int w, int h) { Graphics g; Container c; diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/JDialog.java --- a/jdk/src/java.desktop/share/classes/javax/swing/JDialog.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/JDialog.java Mon Dec 15 17:20:17 2014 -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(); } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/JFileChooser.java --- a/jdk/src/java.desktop/share/classes/javax/swing/JFileChooser.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/JFileChooser.java Mon Dec 15 17:20:17 2014 -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) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/JFrame.java --- a/jdk/src/java.desktop/share/classes/javax/swing/JFrame.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/JFrame.java Mon Dec 15 17:20:17 2014 -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(); } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/JInternalFrame.java --- a/jdk/src/java.desktop/share/classes/javax/swing/JInternalFrame.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/JInternalFrame.java Mon Dec 15 17:20:17 2014 -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); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/JList.java --- a/jdk/src/java.desktop/share/classes/javax/swing/JList.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/JList.java Mon Dec 15 17:20:17 2014 -0800 @@ -3663,6 +3663,7 @@ } } + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { AccessibleContext ac = getCurrentAccessibleContext(); if (ac instanceof AccessibleComponent) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/JOptionPane.java --- a/jdk/src/java.desktop/share/classes/javax/swing/JOptionPane.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/JOptionPane.java Mon Dec 15 17:20:17 2014 -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) diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/JTabbedPane.java --- a/jdk/src/java.desktop/share/classes/javax/swing/JTabbedPane.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/JTabbedPane.java Mon Dec 15 17:20:17 2014 -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) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/JTable.java --- a/jdk/src/java.desktop/share/classes/javax/swing/JTable.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/JTable.java Mon Dec 15 17:20:17 2014 -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) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/JViewport.java --- a/jdk/src/java.desktop/share/classes/javax/swing/JViewport.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/JViewport.java Mon Dec 15 17:20:17 2014 -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. diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/Popup.java --- a/jdk/src/java.desktop/share/classes/javax/swing/Popup.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/Popup.java Mon Dec 15 17:20:17 2014 -0800 @@ -253,6 +253,7 @@ paint(g); } + @SuppressWarnings("deprecation") public void show() { this.pack(); if (getWidth() > 0 && getHeight() > 0) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/ProgressMonitor.java --- a/jdk/src/java.desktop/share/classes/javax/swing/ProgressMonitor.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/ProgressMonitor.java Mon Dec 15 17:20:17 2014 -0800 @@ -260,6 +260,7 @@ * @see #setMaximum * @see #close */ + @SuppressWarnings("deprecation") public void setProgress(int nv) { if (nv >= max) { close(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/RepaintManager.java --- a/jdk/src/java.desktop/share/classes/javax/swing/RepaintManager.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/RepaintManager.java Mon Dec 15 17:20:17 2014 -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. */ diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/SortingFocusTraversalPolicy.java --- a/jdk/src/java.desktop/share/classes/javax/swing/SortingFocusTraversalPolicy.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/SortingFocusTraversalPolicy.java Mon Dec 15 17:20:17 2014 -0800 @@ -195,6 +195,7 @@ return true; } + @SuppressWarnings("deprecation") private void enumerateCycle(Container container, List cycle) { if (!(container.isVisible() && container.isDisplayable())) { return; diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/SwingUtilities.java --- a/jdk/src/java.desktop/share/classes/javax/swing/SwingUtilities.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/SwingUtilities.java Mon Dec 15 17:20:17 2014 -0800 @@ -1929,6 +1929,7 @@ public void windowDeactivated(WindowEvent e) { } + @SuppressWarnings("deprecation") public void show() { // This frame can never be shown } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/UIManager.java --- a/jdk/src/java.desktop/share/classes/javax/swing/UIManager.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/UIManager.java Mon Dec 15 17:20:17 2014 -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 diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicArrowButton.java --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicArrowButton.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicArrowButton.java Mon Dec 15 17:20:17 2014 -0800 @@ -216,6 +216,7 @@ * * @return {@code false} */ + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { return false; } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboPopup.java --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboPopup.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicComboPopup.java Mon Dec 15 17:20:17 2014 -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; } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicFileChooserUI.java Mon Dec 15 17:20:17 2014 -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) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java Mon Dec 15 17:20:17 2014 -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() { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicListUI.java --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicListUI.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicListUI.java Mon Dec 15 17:20:17 2014 -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; diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneDivider.java --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneDivider.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneDivider.java Mon Dec 15 17:20:17 2014 -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; } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneUI.java --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneUI.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicSplitPaneUI.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTabbedPaneUI.java Mon Dec 15 17:20:17 2014 -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 diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextUI.java --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextUI.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextUI.java Mon Dec 15 17:20:17 2014 -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; diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicToolBarUI.java Mon Dec 15 17:20:17 2014 -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()) diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTreeUI.java Mon Dec 15 17:20:17 2014 -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) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalComboBoxButton.java --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalComboBoxButton.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalComboBoxButton.java Mon Dec 15 17:20:17 2014 -0800 @@ -161,6 +161,7 @@ iconOnly = onlyIcon; } + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { return false; } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalRootPaneUI.java --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalRootPaneUI.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalRootPaneUI.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalSplitPaneDivider.java --- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalSplitPaneDivider.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalSplitPaneDivider.java Mon Dec 15 17:20:17 2014 -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; } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/table/JTableHeader.java --- a/jdk/src/java.desktop/share/classes/javax/swing/table/JTableHeader.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/table/JTableHeader.java Mon Dec 15 17:20:17 2014 -0800 @@ -1427,6 +1427,7 @@ } } + @SuppressWarnings("deprecation") public boolean isFocusTraversable() { AccessibleContext ac = getCurrentAccessibleContext(); if (ac instanceof AccessibleComponent) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/text/GlyphPainter1.java --- a/jdk/src/java.desktop/share/classes/javax/swing/text/GlyphPainter1.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/text/GlyphPainter1.java Mon Dec 15 17:20:17 2014 -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()))) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/text/StyleContext.java --- a/jdk/src/java.desktop/share/classes/javax/swing/text/StyleContext.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/text/StyleContext.java Mon Dec 15 17:20:17 2014 -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. diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/text/html/AccessibleHTML.java --- a/jdk/src/java.desktop/share/classes/javax/swing/text/html/AccessibleHTML.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/text/html/AccessibleHTML.java Mon Dec 15 17:20:17 2014 -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) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/text/html/FormView.java --- a/jdk/src/java.desktop/share/classes/javax/swing/text/html/FormView.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/text/html/FormView.java Mon Dec 15 17:20:17 2014 -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('&'); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/text/html/FrameView.java --- a/jdk/src/java.desktop/share/classes/javax/swing/text/html/FrameView.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/text/html/FrameView.java Mon Dec 15 17:20:17 2014 -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); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/text/html/HiddenTagView.java --- a/jdk/src/java.desktop/share/classes/javax/swing/text/html/HiddenTagView.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/text/html/HiddenTagView.java Mon Dec 15 17:20:17 2014 -0800 @@ -129,6 +129,7 @@ // local methods + @SuppressWarnings("deprecation") void updateYAlign(Font font) { Container c = getContainer(); FontMetrics fm = (c != null) ? c.getFontMetrics(font) : diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/text/html/IsindexView.java --- a/jdk/src/java.desktop/share/classes/javax/swing/text/html/IsindexView.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/text/html/IsindexView.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/text/html/LineView.java --- a/jdk/src/java.desktop/share/classes/javax/swing/text/html/LineView.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/text/html/LineView.java Mon Dec 15 17:20:17 2014 -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); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/javax/swing/text/html/StyleSheet.java --- a/jdk/src/java.desktop/share/classes/javax/swing/text/html/StyleSheet.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/javax/swing/text/html/StyleSheet.java Mon Dec 15 17:20:17 2014 -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) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/applet/AppletPanel.java --- a/jdk/src/java.desktop/share/classes/sun/applet/AppletPanel.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/applet/AppletPanel.java Mon Dec 15 17:20:17 2014 -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"); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/applet/AppletProps.java --- a/jdk/src/java.desktop/share/classes/sun/applet/AppletProps.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/applet/AppletProps.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/applet/AppletSecurity.java --- a/jdk/src/java.desktop/share/classes/sun/applet/AppletSecurity.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/applet/AppletSecurity.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/applet/AppletViewer.java --- a/jdk/src/java.desktop/share/classes/sun/applet/AppletViewer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/applet/AppletViewer.java Mon Dec 15 17:20:17 2014 -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) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/awt/AppContext.java --- a/jdk/src/java.desktop/share/classes/sun/awt/AppContext.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/awt/AppContext.java Mon Dec 15 17:20:17 2014 -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())) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/awt/DebugSettings.java --- a/jdk/src/java.desktop/share/classes/sun/awt/DebugSettings.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/awt/DebugSettings.java Mon Dec 15 17:20:17 2014 -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 diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/awt/LightweightFrame.java --- a/jdk/src/java.desktop/share/classes/sun/awt/LightweightFrame.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/awt/LightweightFrame.java Mon Dec 15 17:20:17 2014 -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); } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/awt/SunToolkit.java --- a/jdk/src/java.desktop/share/classes/sun/awt/SunToolkit.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/awt/SunToolkit.java Mon Dec 15 17:20:17 2014 -0800 @@ -713,6 +713,7 @@ } + @SuppressWarnings("deprecation") static final SoftCache imgCache = new SoftCache(); static Image getImageFromHash(Toolkit tk, URL url) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/awt/datatransfer/DataTransferer.java --- a/jdk/src/java.desktop/share/classes/sun/awt/datatransfer/DataTransferer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/awt/datatransfer/DataTransferer.java Mon Dec 15 17:20:17 2014 -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 @@ -1287,6 +1288,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 diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/awt/image/GifImageDecoder.java --- a/jdk/src/java.desktop/share/classes/sun/awt/image/GifImageDecoder.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/awt/image/GifImageDecoder.java Mon Dec 15 17:20:17 2014 -0800 @@ -114,7 +114,7 @@ /** * produce an image from the stream. */ - @SuppressWarnings("fallthrough") + @SuppressWarnings({"fallthrough", "deprecation"}) public void produceImage() throws IOException, ImageFormatException { try { readHeader(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/awt/image/MultiResolutionToolkitImage.java --- a/jdk/src/java.desktop/share/classes/sun/awt/image/MultiResolutionToolkitImage.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/awt/image/MultiResolutionToolkitImage.java Mon Dec 15 17:20:17 2014 -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(); } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/print/PSPrinterJob.java --- a/jdk/src/java.desktop/share/classes/sun/print/PSPrinterJob.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/print/PSPrinterJob.java Mon Dec 15 17:20:17 2014 -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) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java --- a/jdk/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java Mon Dec 15 17:20:17 2014 -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()) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/print/ServiceDialog.java --- a/jdk/src/java.desktop/share/classes/sun/print/ServiceDialog.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/print/ServiceDialog.java Mon Dec 15 17:20:17 2014 -0800 @@ -792,6 +792,7 @@ return label; } + @SuppressWarnings("deprecation") public void actionPerformed(ActionEvent e) { Object source = e.getSource(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/swing/FilePane.java --- a/jdk/src/java.desktop/share/classes/sun/swing/FilePane.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/swing/FilePane.java Mon Dec 15 17:20:17 2014 -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 diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/swing/JLightweightFrame.java --- a/jdk/src/java.desktop/share/classes/sun/swing/JLightweightFrame.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/swing/JLightweightFrame.java Mon Dec 15 17:20:17 2014 -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) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/share/classes/sun/swing/SwingUtilities2.java --- a/jdk/src/java.desktop/share/classes/sun/swing/SwingUtilities2.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/share/classes/sun/swing/SwingUtilities2.java Mon Dec 15 17:20:17 2014 -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()) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/InfoWindow.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/InfoWindow.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/InfoWindow.java Mon Dec 15 17:20:17 2014 -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() { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/ListHelper.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/ListHelper.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/ListHelper.java Mon Dec 15 17:20:17 2014 -0800 @@ -225,6 +225,7 @@ return index == focusedIndex; } + @SuppressWarnings("deprecation") void setFont(Font newFont) { if (newFont != font) { font = newFont; diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XBaseMenuWindow.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XBaseMenuWindow.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XBaseMenuWindow.java Mon Dec 15 17:20:17 2014 -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) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XChoicePeer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XChoicePeer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XChoicePeer.java Mon Dec 15 17:20:17 2014 -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()); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XComponentPeer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XComponentPeer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XComponentPeer.java Mon Dec 15 17:20:17 2014 -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)) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XDragSourceContextPeer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XDragSourceContextPeer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XDragSourceContextPeer.java Mon Dec 15 17:20:17 2014 -0800 @@ -110,6 +110,7 @@ return theInstance; } + @SuppressWarnings("deprecation") protected void startDrag(Transferable transferable, long[] formats, Map formatMap) { Component component = getTrigger().getComponent(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XDropTargetContextPeer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XDropTargetContextPeer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XDropTargetContextPeer.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XEmbedChildProxyPeer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XEmbedChildProxyPeer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XEmbedChildProxyPeer.java Mon Dec 15 17:20:17 2014 -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) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XEmbeddedFrame.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XEmbeddedFrame.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XEmbeddedFrame.java Mon Dec 15 17:20:17 2014 -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) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XEmbeddingContainer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XEmbeddingContainer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XEmbeddingContainer.java Mon Dec 15 17:20:17 2014 -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); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XFileDialogPeer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XFileDialogPeer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XFileDialogPeer.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XFramePeer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XFramePeer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XFramePeer.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XInputMethod.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XInputMethod.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XInputMethod.java Mon Dec 15 17:20:17 2014 -0800 @@ -137,6 +137,7 @@ XToolkit.awtUnlock(); } + @SuppressWarnings("deprecation") long getCurrentParentWindow() { return ((XWindow)clientComponentWindow.getPeer()).getContentWindow(); } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XMenuBarPeer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XMenuBarPeer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XMenuBarPeer.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XMouseInfoPeer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XMouseInfoPeer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XMouseInfoPeer.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XPanelPeer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XPanelPeer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XPanelPeer.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XRepaintArea.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XRepaintArea.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XRepaintArea.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XScrollPanePeer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XScrollPanePeer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XScrollPanePeer.java Mon Dec 15 17:20:17 2014 -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(); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XScrollbarPeer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XScrollbarPeer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XScrollbarPeer.java Mon Dec 15 17:20:17 2014 -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; diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XTextAreaPeer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XTextAreaPeer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XTextAreaPeer.java Mon Dec 15 17:20:17 2014 -0800 @@ -1164,6 +1164,7 @@ } @Override + @SuppressWarnings("deprecation") public ComponentPeer getPeer() { return (ComponentPeer) (xwin); } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XTextFieldPeer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XTextFieldPeer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XTextFieldPeer.java Mon Dec 15 17:20:17 2014 -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; } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XToolkit.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XToolkit.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XToolkit.java Mon Dec 15 17:20:17 2014 -0800 @@ -2438,12 +2438,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); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XTrayIconPeer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XTrayIconPeer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XTrayIconPeer.java Mon Dec 15 17:20:17 2014 -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(); } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XWindow.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XWindow.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XWindow.java Mon Dec 15 17:20:17 2014 -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); } diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11/XWindowPeer.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11/XWindowPeer.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11/XWindowPeer.java Mon Dec 15 17:20:17 2014 -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); diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/awt/X11GraphicsDevice.java --- a/jdk/src/java.desktop/unix/classes/sun/awt/X11GraphicsDevice.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11GraphicsDevice.java Mon Dec 15 17:20:17 2014 -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) { diff -r f488c331f610 -r b608ffcaed74 jdk/src/java.desktop/unix/classes/sun/java2d/opengl/GLXVolatileSurfaceManager.java --- a/jdk/src/java.desktop/unix/classes/sun/java2d/opengl/GLXVolatileSurfaceManager.java Mon Dec 15 19:21:00 2014 +0300 +++ b/jdk/src/java.desktop/unix/classes/sun/java2d/opengl/GLXVolatileSurfaceManager.java Mon Dec 15 17:20:17 2014 -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();