Skip to content

Commit a5093a5

Browse files
committed
Fix wrt databind change
1 parent f1963b9 commit a5093a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/tools/jackson/module/kotlin/KotlinDeserializers.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ object RegexDeserializer : StdDeserializer<Regex>(Regex::class.java) {
3636
if (!optionsNode.isArray) {
3737
throw IllegalStateException("Expected an array of strings for RegexOptions, but type was ${node.nodeType}")
3838
}
39-
optionsNode.elements().asSequence().map { RegexOption.valueOf(it.asText()) }.toSet()
39+
optionsNode.iterator().asSequence().map { RegexOption.valueOf(it.asText()) }.toSet()
4040
} else {
4141
emptySet()
4242
}

0 commit comments

Comments
 (0)