@@ -159,25 +159,25 @@ class TestPropertyRequiredness {
159
159
" z" .isRequiredForSerializationOf(testClass, mapper)
160
160
}
161
161
162
- private fun String.isRequiredForSerializationOf (type : Class <* >, mapper : ObjectMapper ): Unit {
162
+ private fun String.isRequiredForSerializationOf (type : Class <* >, mapper : ObjectMapper ) {
163
163
assertTrue(" Property $this should be required for serialization!" ){
164
164
introspectSerialization(type, mapper).isRequired(this )
165
165
}
166
166
}
167
167
168
- private fun String.isRequiredForDeserializationOf (type : Class <* >, mapper : ObjectMapper ): Unit {
168
+ private fun String.isRequiredForDeserializationOf (type : Class <* >, mapper : ObjectMapper ) {
169
169
assertTrue(" Property $this should be required for deserialization!" ){
170
170
introspectDeserialization(type, mapper).isRequired(this )
171
171
}
172
172
}
173
173
174
- private fun String.isOptionalForSerializationOf (type : Class <* >, mapper : ObjectMapper ): Unit {
174
+ private fun String.isOptionalForSerializationOf (type : Class <* >, mapper : ObjectMapper ) {
175
175
assertFalse(" Property $this should be optional for serialization!" ){
176
176
introspectSerialization(type, mapper).isRequired(this )
177
177
}
178
178
}
179
179
180
- private fun String.isOptionalForDeserializationOf (type : Class <* >, mapper : ObjectMapper ): Unit {
180
+ private fun String.isOptionalForDeserializationOf (type : Class <* >, mapper : ObjectMapper ) {
181
181
assertFalse(" Property $this should be optional for deserialization of ${type.simpleName} !" ){
182
182
introspectDeserialization(type, mapper).isRequired(this )
183
183
}
0 commit comments