Skip to content

Commit

Permalink
Gradle: Upgrade Jackson to version 2.10.0
Browse files Browse the repository at this point in the history
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 <sebastian.schuberth@bosch-si.com>
  • Loading branch information
sschuberth committed Oct 7, 2019
1 parent cb813c7 commit bdab744
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion analyzer/src/main/kotlin/managers/utils/DotNetSupport.kt
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class DotNetSupport(packageReferencesMap: Map<String, String>) {

val node = jsonMapper.readTree(registrationInfo)

return if (node != null) {
return if (node?.isMissingNode == false) {
Pair(getNuspecURL(node), getCatalogURL(node))
} else {
null
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bdab744

Please sign in to comment.