--- old/src/java.desktop/share/classes/javax/swing/Autoscroller.java 2016-12-19 22:11:14.000000000 +0300 +++ new/src/java.desktop/share/classes/javax/swing/Autoscroller.java 2016-12-19 22:11:14.000000000 +0300 @@ -82,6 +82,7 @@ /** * Starts the timer targeting the passed in component. */ + @SuppressWarnings("deprecation") private void start(JComponent c, MouseEvent e) { Point screenLocation = c.getLocationOnScreen(); @@ -156,6 +157,7 @@ * ActionListener method. Invoked when the Timer fires. This will scroll * if necessary. */ + @SuppressWarnings("deprecation") public void actionPerformed(ActionEvent x) { JComponent component = Autoscroller.component;