[findbugs] 03/04: Fixed a source incompatibility with dom4j 2.x

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Fri Oct 13 23:17:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository findbugs.

commit db49eebfbc27e80acfd7ecbd9529ecd5c7b241d8
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Sat Oct 14 01:14:53 2017 +0200

    Fixed a source incompatibility with dom4j 2.x
---
 debian/changelog                               |  1 +
 debian/patches/0016-dom4j2-compatibility.patch | 14 ++++++++++++++
 debian/patches/series                          |  1 +
 3 files changed, 16 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index fccedee..1177942 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 findbugs (3.1.0~preview2-2) UNRELEASED; urgency=medium
 
   * Team upload.
+  * Fixed a source incompatibility with dom4j 2.x
   * Switch to debhelper level 10
   * Standards-Version updated to 4.1.1
 
diff --git a/debian/patches/0016-dom4j2-compatibility.patch b/debian/patches/0016-dom4j2-compatibility.patch
new file mode 100644
index 0000000..c062b06
--- /dev/null
+++ b/debian/patches/0016-dom4j2-compatibility.patch
@@ -0,0 +1,14 @@
+Description: Fixes the compatibility with dom4j 2.x
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: no
+--- a/src/java/edu/umd/cs/findbugs/xml/XMLUtil.java
++++ b/src/java/edu/umd/cs/findbugs/xml/XMLUtil.java
+@@ -30,7 +30,7 @@
+ 
+     @SuppressWarnings("unchecked")
+     public static <T> List<T> selectNodes(Node node, String arg0) {
+-        return node.selectNodes(arg0);
++        return (List) node.selectNodes(arg0);
+     }
+ 
+ }
diff --git a/debian/patches/series b/debian/patches/series
index ea01ed6..ea2c0d8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -13,3 +13,4 @@
 0013-dont-fetch-external-libraries.patch
 0014-asm-compatibility.patch
 0015-reproducibility.patch
+0016-dom4j2-compatibility.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/findbugs.git



More information about the pkg-java-commits mailing list