Skip to content

Commit 255b9a9

Browse files
committed
Explicitly states that it will not be caught
from FasterXML/jackson-module-kotlin#920
1 parent 1296faf commit 255b9a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/kotlin/io/github/projectmapk/jackson/module/kogera/zPorted/test/KotlinFeatures.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ private class TestM11Changes {
195195
try {
196196
person.phone
197197
fail("While person can be deserialized without a phone, phone must be set before attempting to access it")
198-
} catch (e: IllegalStateException) { // expected
198+
} catch (_: IllegalStateException) { // expected
199199
}
200200
}
201201

src/test/kotlin/io/github/projectmapk/jackson/module/kogera/zPorted/test/github/Github161.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class TestGithub161 {
2020
try {
2121
objectMapper.readValue(json, Foo::class.java)
2222
fail("Expected an error on the missing primitive value")
23-
} catch (ex: MismatchedInputException) {
23+
} catch (_: MismatchedInputException) {
2424
// success
2525
}
2626
}

0 commit comments

Comments
 (0)