Skip to content

Commit 8ee3905

Browse files
committed
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 <[email protected]>
1 parent 6511ab1 commit 8ee3905

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

analyzer/src/main/kotlin/managers/utils/DotNetSupport.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ class DotNetSupport(packageReferencesMap: Map<String, String>) {
246246

247247
val node = jsonMapper.readTree(registrationInfo)
248248

249-
return if (node != null) {
249+
return if (node?.isMissingNode == false) {
250250
Pair(getNuspecURL(node), getCatalogURL(node))
251251
} else {
252252
null

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ digraphVersion = 1.0
1616
disklrucacheVersion = 2.0.2
1717
flexmarkVersion = 0.50.40
1818
hamcrestCoreVersion = 1.3
19-
jacksonVersion = 2.9.10
19+
jacksonVersion = 2.10.0
2020
jcommanderVersion = 1.78
2121
kotlintestVersion = 3.4.2
2222
kotlinxCoroutinesVersion = 1.3.2

0 commit comments

Comments
 (0)