File: 0002-java8-compatibility.patch

package info (click to toggle)
jenkins-json 2.4-jenkins-8%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,300 kB
  • sloc: java: 28,849; xml: 10,513; javascript: 132; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 923 bytes parent folder | 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: 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/src/main/java/net/sf/json/JsonConfig.java
+++ b/src/main/java/net/sf/json/JsonConfig.java
@@ -1412,7 +1412,7 @@
      */
     public void unregisterJsonValueProcessor(Class beanClass, Class propertyType) {
         if (beanClass != null && propertyType != null) {
-            beanTypeMap.remove(beanClass, propertyType);
+            beanTypeMap.removeMultiKey(beanClass, propertyType);
         }
     }
 
@@ -1425,7 +1425,7 @@
      */
     public void unregisterJsonValueProcessor(Class beanClass, String key) {
         if (beanClass != null && key != null) {
-            beanKeyMap.remove(beanClass, key);
+            beanKeyMap.removeMultiKey(beanClass, key);
         }
     }