From bdab744db4deda7bbcd4afed6a9cf7ca30cdb72a Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Fri, 27 Sep 2019 21:50:07 +0200 Subject: [PATCH] Gradle: Upgrade Jackson to version 2.10.0 See https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.10. This version changed the return value of readTree() for an empty string: Where previously null was returned, now MissingNode is return. Rewrite a check so that it would work for both behaviors. Signed-off-by: Sebastian Schuberth --- analyzer/src/main/kotlin/managers/utils/DotNetSupport.kt | 2 +- gradle.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/analyzer/src/main/kotlin/managers/utils/DotNetSupport.kt b/analyzer/src/main/kotlin/managers/utils/DotNetSupport.kt index d681feedc742..6b937739aa9d 100644 --- a/analyzer/src/main/kotlin/managers/utils/DotNetSupport.kt +++ b/analyzer/src/main/kotlin/managers/utils/DotNetSupport.kt @@ -246,7 +246,7 @@ class DotNetSupport(packageReferencesMap: Map) { val node = jsonMapper.readTree(registrationInfo) - return if (node != null) { + return if (node?.isMissingNode == false) { Pair(getNuspecURL(node), getCatalogURL(node)) } else { null diff --git a/gradle.properties b/gradle.properties index 4fe8f68c77a3..8d7846a505a4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -16,7 +16,7 @@ digraphVersion = 1.0 disklrucacheVersion = 2.0.2 flexmarkVersion = 0.50.40 hamcrestCoreVersion = 1.3 -jacksonVersion = 2.9.10 +jacksonVersion = 2.10.0 jcommanderVersion = 1.78 kotlintestVersion = 3.4.2 kotlinxCoroutinesVersion = 1.3.2