Update jackson dependency to 2.9.1
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 7 Oct 2017 14:30:00 +0000 (16:30 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 7 Oct 2017 14:30:00 +0000 (16:30 +0200)
build.gradle
src/main/kotlin/net/pterodactylus/sone/web/ajax/GetTimesAjaxPage.kt
src/test/kotlin/net/pterodactylus/sone/web/ajax/JsonReturnObjectTest.kt

index 51398e8..4ab4170 100644 (file)
@@ -45,7 +45,7 @@ dependencies {
     compile group: 'net.pterodactylus', name: 'utils', version: '0.12.4'
     compile group: 'com.google.inject', name: 'guice', version: '3.0'
     compile group: 'com.google.guava', name: 'guava', version: '14.0.1'
-    compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.1.2'
+    compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.1'
     compile group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.2'
     compile group: 'org.jsoup', name: 'jsoup', version: '1.10.2'
 
index 6930e45..fb2592e 100644 (file)
@@ -43,7 +43,7 @@ class GetTimesAjaxPage(webInterface: WebInterface,
                                        "tooltip" to synchronized(dateTimeFormatter) {
                                                dateTimeFormatter.format(time)
                                        })
-               }.forEach { this@jsonObject.put(it.first, it.second) }
+               }.forEach { this@jsonObject.set(it.first, it.second) }
        }
 
 }
index 55d1ba1..7849139 100644 (file)
@@ -84,7 +84,7 @@ class JsonReturnObjectTest {
                        put("text", "text")
                        put("int", 123)
                        put("boolean", true)
-                       put("object", objectNode)
+                       set("object", objectNode)
                }))
        }