changeset 54394:a26c1f6f9ad5

8177960: Deprecate the Swing Motif Look and Feel and document it as unsupported on macOS Reviewed-by: psadhukhan, prr
author serb
date Fri, 22 Mar 2019 12:44:47 -0700
parents 7de72c87766a
children 24d072f23933
files src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifLookAndFeel.java src/java.desktop/unix/classes/sun/awt/X11/XAWTLookAndFeel.java
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifLookAndFeel.java	Fri Mar 22 14:39:16 2019 +0530
+++ b/src/java.desktop/share/classes/com/sun/java/swing/plaf/motif/MotifLookAndFeel.java	Fri Mar 22 12:44:47 2019 -0700
@@ -60,8 +60,12 @@
  * long term persistence.
  *
  * @author unattributed
+ * @deprecated The Motif Look and Feel is deprecated with the intent to remove
+ *             it in some future release. It is recommended to use
+ *             {@link javax.swing.plaf.metal.MetalLookAndFeel} instead.
  */
 @SuppressWarnings("serial") // Superclass is not serializable across versions
+@Deprecated(since="13", forRemoval=true)
 public class MotifLookAndFeel extends BasicLookAndFeel
 {
     public String getName() {
--- a/src/java.desktop/unix/classes/sun/awt/X11/XAWTLookAndFeel.java	Fri Mar 22 14:39:16 2019 +0530
+++ b/src/java.desktop/unix/classes/sun/awt/X11/XAWTLookAndFeel.java	Fri Mar 22 12:44:47 2019 -0700
@@ -38,7 +38,7 @@
 import com.sun.java.swing.plaf.motif.*;
 import sun.awt.X11.XComponentPeer;
 
-@SuppressWarnings("serial") // JDK-implementation class
+@SuppressWarnings({"serial", "removal"}) // JDK-implementation class
 class XAWTLookAndFeel extends MotifLookAndFeel {
 
     /**