Skip to content

Commit f8593aa

Browse files
committed
Added mistakenly deleted TODO
1 parent e25506f commit f8593aa

File tree

1 file changed

+1
-0
lines changed
  • utbot-framework-api/src/main/kotlin/org/utbot/framework/plugin/api/util

1 file changed

+1
-0
lines changed

utbot-framework-api/src/main/kotlin/org/utbot/framework/plugin/api/util/IdUtil.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ fun ClassId.defaultValueModel(): UtModel = when (this) {
313313
val FieldId.safeField: Field?
314314
get() = declaringClass.jClass.declaredFields.firstOrNull { it.name == name }
315315

316+
// TODO: maybe cache it somehow in the future
316317
val FieldId.field: Field
317318
get() = safeField ?: error("Field $name is not found in class ${declaringClass.jClass.name}")
318319

0 commit comments

Comments
 (0)