File: 04_dom4j2_compatibility.diff

package info (click to toggle)
velocity-tools 2.0-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 3,960 kB
  • sloc: java: 24,414; xml: 7,944; jsp: 459; makefile: 27
file content (14 lines) | stat: -rw-r--r-- 517 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fixes the compatibility with dom4j 2.x
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: no
--- a/src/main/java/org/apache/velocity/tools/generic/XmlTool.java
+++ b/src/main/java/org/apache/velocity/tools/generic/XmlTool.java
@@ -572,7 +572,7 @@
         {
             if (n instanceof Element)
             {
-                kids.addAll((List<Node>)((Element)n).elements());
+                kids.addAll((List)((Element)n).elements());
             }
         }
         return new XmlTool(kids);