Package: libjopendocument-java / 1.3repack-1

commons-collections-compat.patch Patch series | 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: Fix commons collections compatibility
 Debian's commons collections package has an update for java 8 compat
Author: Jerome Robert <jeromerobert@gmx.com>
Source: https://lists.debian.org/debian-java/2014/06/msg00081.html

Index: libjopendocument-java/src/org/jopendocument/util/CollectionMap.java
===================================================================
--- libjopendocument-java.orig/src/org/jopendocument/util/CollectionMap.java
+++ libjopendocument-java/src/org/jopendocument/util/CollectionMap.java
@@ -196,7 +196,7 @@ public class CollectionMap<K, V> extends
 
     public void removeAll(Map<? extends K, ? extends V> m) {
         for (final Map.Entry<? extends K, ? extends V> e : m.entrySet()) {
-            this.remove(e.getKey(), e.getValue());
+            this.removeMapping(e.getKey(), e.getValue());
         }
     }
 
@@ -259,4 +259,4 @@ public class CollectionMap<K, V> extends
     public Collection<V> remove(Object key) {
         return (Collection<V>) super.remove(key);
     }
-}
\ No newline at end of file
+}