此规则会标记以下字符串:
"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel""apple.laf.AquaLookAndFeel"
不再支持将这些字符串作为 javax.swing.UIManager.setLookAndFeel 方法的参数。替代方法是:
"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel" 替换为 "javax.swing.plaf.nimbus.NimbusLookAndFeel""apple.laf.AquaLookAndFeel" 替换为对 UIManager.getSystemLookAndFeelClassName() 的调用有关 Java SE 11 更改的更多信息,请参阅 Java 10 Removed Features and Options。