File: 01-java8-compatibility.patch

package info (click to toggle)
libjson-java 3.2.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,796 kB
  • sloc: java: 18,623; xml: 1,854; javascript: 527; makefile: 9
file content (32 lines) | stat: -rw-r--r-- 1,167 bytes parent folder | download | duplicates (2)
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
26
27
28
29
30
31
32
Description: Uses the renamed method MultiKeyMap.removeMultiKey() introduced
 in libcommons-collections3-java 3.2.1-7 to solve a compatibility issue with
 Java 8.
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/subprojects/json-lib-core/src/main/java/org/kordamp/json/JsonConfig.java
+++ b/subprojects/json-lib-core/src/main/java/org/kordamp/json/JsonConfig.java
@@ -1417,7 +1417,7 @@
      */
     public void unregisterJsonValueProcessor(Class beanClass, Class propertyType) {
         if (beanClass != null && propertyType != null) {
-            beanTypeMap.remove(beanClass, propertyType);
+            beanTypeMap.removeMultiKey(beanClass, propertyType);
         }
     }
 
@@ -1430,7 +1430,7 @@
      */
     public void unregisterJsonValueProcessor(Class beanClass, String key) {
         if (beanClass != null && key != null) {
-            beanKeyMap.remove(beanClass, key);
+            beanKeyMap.removeMultiKey(beanClass, key);
         }
     }
 
@@ -1490,4 +1490,4 @@
     public void unregisterPropertyNameProcessor(Class target) {
         unregisterJavaPropertyNameProcessor(target);
     }
-}
\ No newline at end of file
+}