--- old/src/java.desktop/share/classes/javax/swing/JComponent.java 2016-10-19 11:53:06.138303306 -0700
+++ new/src/java.desktop/share/classes/javax/swing/JComponent.java 2016-10-19 11:53:06.014303303 -0700
@@ -555,6 +555,7 @@
* @see #setComponentPopupMenu
* @since 1.5
*/
+ @SuppressWarnings("deprecation")
public JPopupMenu getComponentPopupMenu() {
if(!getInheritsPopupMenu()) {
@@ -2913,6 +2914,7 @@
* @param pressed true if the key is pressed
* @return true if there is a key binding for e
*/
+ @SuppressWarnings("deprecation")
boolean processKeyBindings(KeyEvent e, boolean pressed) {
if (!SwingUtilities.isValidKeyEventForKeyBindings(e)) {
return false;
@@ -4457,6 +4459,7 @@
* return value for this method
* @see #getVisibleRect
*/
+ @SuppressWarnings("deprecation")
static final void computeVisibleRect(Component c, Rectangle visibleRect) {
Container p = c.getParent();
Rectangle bounds = c.getBounds();
@@ -4625,6 +4628,7 @@
* or null
if not in any container
*/
@BeanProperty(bound = false)
+ @SuppressWarnings("deprecation")
public Container getTopLevelAncestor() {
for(Container p = this; p != null; p = p.getParent()) {
if(p instanceof Window || p instanceof Applet) {
@@ -5032,6 +5036,7 @@
this.paintingChild = paintingChild;
}
+ @SuppressWarnings("deprecation")
void _paintImmediately(int x, int y, int w, int h) {
Graphics g;
Container c;