dom4j/00-fix-java11-compilation.patch
Petr Šabata 8022602a82 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/dom4j#635ce7ea50d33d6356ddaadd3e1c4799d7eeef4c
2020-10-14 23:47:33 +02:00

23 lines
955 B
Diff

diff --git a/src/main/java/org/dom4j/swing/LeafTreeNode.java b/src/main/java/org/dom4j/swing/LeafTreeNode.java
index 94706c6..69b5465 100644
--- a/src/main/java/org/dom4j/swing/LeafTreeNode.java
+++ b/src/main/java/org/dom4j/swing/LeafTreeNode.java
@@ -24,7 +24,7 @@ import org.dom4j.Node;
* @version $Revision: 1.7 $
*/
public class LeafTreeNode implements TreeNode {
- protected static final Enumeration<?> EMPTY_ENUMERATION = new Enumeration() {
+ protected static final Enumeration<? extends TreeNode> EMPTY_ENUMERATION = new Enumeration() {
public boolean hasMoreElements() {
return false;
}
@@ -54,7 +54,7 @@ public class LeafTreeNode implements TreeNode {
// TreeNode methods
// -------------------------------------------------------------------------
- public Enumeration<?> children() {
+ public Enumeration<? extends TreeNode> children() {
return EMPTY_ENUMERATION;
}