We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e25506f commit f8593aaCopy full SHA for f8593aa
utbot-framework-api/src/main/kotlin/org/utbot/framework/plugin/api/util/IdUtil.kt
@@ -313,6 +313,7 @@ fun ClassId.defaultValueModel(): UtModel = when (this) {
313
val FieldId.safeField: Field?
314
get() = declaringClass.jClass.declaredFields.firstOrNull { it.name == name }
315
316
+// TODO: maybe cache it somehow in the future
317
val FieldId.field: Field
318
get() = safeField ?: error("Field $name is not found in class ${declaringClass.jClass.name}")
319
0 commit comments