Package: libjgoodies-looks-java / 2.7.0-3

01-java10-compatibility.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Description: Fixes the build failure with Java 10
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/pom.xml
+++ b/pom.xml
@@ -93,6 +93,9 @@
                 <configuration>
                     <source>1.6</source>
                     <target>1.6</target>
+                    <excludes>
+                        <exclude>com/jgoodies/looks/windows/**</exclude>
+                    </excludes>
                  </configuration>
              </plugin>
          </plugins>
--- a/src/main/java/com/jgoodies/looks/common/MenuSelectionProcessor.java
+++ b/src/main/java/com/jgoodies/looks/common/MenuSelectionProcessor.java
@@ -43,8 +43,6 @@
 import javax.swing.SwingUtilities;
 import javax.swing.plaf.basic.ComboPopup;
 
-import com.sun.java.swing.plaf.windows.WindowsRootPaneUI;
-
 /**
  * Handles the Alt key to select the first menu in the menu bar - if any.
  * Useful to let non-Windows L&amp;fs like Plastic feel more like Windows.
--- a/src/main/java/com/jgoodies/looks/Options.java
+++ b/src/main/java/com/jgoodies/looks/Options.java
@@ -39,7 +39,6 @@
 import com.jgoodies.common.base.SystemUtils;
 import com.jgoodies.looks.common.ShadowPopup;
 import com.jgoodies.looks.plastic.PlasticLookAndFeel;
-import com.jgoodies.looks.windows.WindowsLookAndFeel;
 
 /**
  * Provides access to optional features of the JGoodies L&amp;Fs