Skip to content

Commit 62db14a

Browse files
committed
remove unnecessary return type notation
1 parent fce9853 commit 62db14a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/PropertyRequirednessTests.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,25 +159,25 @@ class TestPropertyRequiredness {
159159
"z".isRequiredForSerializationOf(testClass, mapper)
160160
}
161161

162-
private fun String.isRequiredForSerializationOf(type: Class<*>, mapper: ObjectMapper): Unit {
162+
private fun String.isRequiredForSerializationOf(type: Class<*>, mapper: ObjectMapper) {
163163
assertTrue("Property $this should be required for serialization!"){
164164
introspectSerialization(type, mapper).isRequired(this)
165165
}
166166
}
167167

168-
private fun String.isRequiredForDeserializationOf(type: Class<*>, mapper: ObjectMapper): Unit {
168+
private fun String.isRequiredForDeserializationOf(type: Class<*>, mapper: ObjectMapper) {
169169
assertTrue("Property $this should be required for deserialization!"){
170170
introspectDeserialization(type, mapper).isRequired(this)
171171
}
172172
}
173173

174-
private fun String.isOptionalForSerializationOf(type: Class<*>, mapper: ObjectMapper): Unit {
174+
private fun String.isOptionalForSerializationOf(type: Class<*>, mapper: ObjectMapper) {
175175
assertFalse("Property $this should be optional for serialization!"){
176176
introspectSerialization(type, mapper).isRequired(this)
177177
}
178178
}
179179

180-
private fun String.isOptionalForDeserializationOf(type: Class<*>, mapper: ObjectMapper): Unit {
180+
private fun String.isOptionalForDeserializationOf(type: Class<*>, mapper: ObjectMapper) {
181181
assertFalse("Property $this should be optional for deserialization of ${type.simpleName}!"){
182182
introspectDeserialization(type, mapper).isRequired(this)
183183
}

0 commit comments

Comments
 (0)