# 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