File: java9-compatibility.patch

package info (click to toggle)
logisim 2.7.1~dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 14,136 kB
  • sloc: java: 66,040; xml: 1,113; haskell: 342; makefile: 22
file content (25 lines) | stat: -rw-r--r-- 813 bytes parent folder | 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
Description: Fixes the compatibility with Java 9
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/src/com/cburch/logisim/gui/log/ComponentSelector.java
+++ b/src/com/cburch/logisim/gui/log/ComponentSelector.java
@@ -279,7 +279,7 @@
 			return true;
 		}
 
-		public Enumeration<?> children() {
+		public Enumeration children() {
 			return Collections.enumeration(Collections.emptySet());
 		}
 	}
--- a/src/com/cburch/logisim/gui/main/SimulationTreeNode.java
+++ b/src/com/cburch/logisim/gui/main/SimulationTreeNode.java
@@ -15,7 +15,7 @@
 		return false;
 	}
 
-	public abstract Enumeration<?> children();
+	public abstract Enumeration children();
 	public abstract boolean getAllowsChildren();
 	public abstract TreeNode getChildAt(int childIndex);
 	public abstract int getChildCount();