Skip to content

Commit b4e6624

Browse files
committed
Fix type nullability of a variable in an util method
1 parent 89f63a5 commit b4e6624

File tree

1 file changed

+1
-1
lines changed
  • utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/visitor

1 file changed

+1
-1
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/codegen/model/visitor/UtilMethods.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ fun getFieldValue(language: CodegenLanguage): String =
159159
CodegenLanguage.KOTLIN -> {
160160
"""
161161
private fun getFieldValue(any: kotlin.Any, fieldClassName: String, fieldName: String): kotlin.Any? {
162-
val clazz: Class<*>? = Class.forName(fieldClassName)
162+
val clazz: Class<*> = Class.forName(fieldClassName)
163163
val field: java.lang.reflect.Field = clazz.getDeclaredField(fieldName)
164164
165165
field.isAccessible = true

0 commit comments

Comments
 (0)