guix-more/java-velocity-tools-2.0-port-to-dom4j-2.0.patch

java-velocity-tools-2.0-port-to-dom4j-2.0.patch

1
From 453940a997ef72f389a55de3e9a3c8f8428ae3d6 Mon Sep 17 00:00:00 2001
2
From: Michael Simacek <msimacek@redhat.com>
3
Date: Fri, 31 Mar 2017 13:00:10 +0200
4
Subject: [PATCH] Port to dom4j 2.0
5
6
---
7
 src/main/java/org/apache/velocity/tools/generic/XmlTool.java | 2 +-
8
 1 file changed, 1 insertion(+), 1 deletion(-)
9
10
diff --git a/src/main/java/org/apache/velocity/tools/generic/XmlTool.java b/src/main/java/org/apache/velocity/tools/generic/XmlTool.java
11
index 4ab748c..3d5feab 100644
12
--- a/src/main/java/org/apache/velocity/tools/generic/XmlTool.java
13
+++ b/src/main/java/org/apache/velocity/tools/generic/XmlTool.java
14
@@ -572,7 +572,7 @@ public class XmlTool extends SafeConfig
15
         {
16
             if (n instanceof Element)
17
             {
18
-                kids.addAll((List<Node>)((Element)n).elements());
19
+                kids.addAll(((Element)n).elements());
20
             }
21
         }
22
         return new XmlTool(kids);
23
-- 
24
2.9.3
25
26