Skip to content

Commit

Permalink
PSTGRSCROC-140
Browse files Browse the repository at this point in the history
  • Loading branch information
mgramin committed Dec 6, 2019
1 parent eba69d0 commit 89f3803
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -38,7 +38,6 @@ import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.node.ObjectNode
import java.util.HashMap


@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
data class Metadata(
private val name: String,
Expand All @@ -54,7 +53,7 @@ data class Metadata(
this.properties = HashMap()
try {
val mapper = ObjectMapper()
val map: Map<String, String> = mapper.readValue(comment, object : TypeReference<Map<String, String>>() {})
val map: Map<String, Any> = mapper.readValue(comment, object : TypeReference<Map<String, Any>>() {})
this.properties.putAll(map)
if (map.containsKey("type")) {
this.type = map["type"].toString()
Expand Down

0 comments on commit 89f3803

Please sign in to comment.