Skip to content

Commit 8ee46aa

Browse files
Remove packageName property not defined in Java 8 (#1643)
1 parent 6fa3e1b commit 8ee46aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utbot-framework/src/main/kotlin/org/utbot/framework/assemble/AssembleModelGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ class AssembleModelGenerator(private val basePackageName: String) {
420420
get() = this.isPublic || !this.isPrivate && this.packageName == basePackageName
421421

422422
private val Constructor<*>.isVisible : Boolean
423-
get() = this.isPublic || !this.isPrivate && this.declaringClass.packageName == basePackageName
423+
get() = this.isPublic || !this.isPrivate && this.declaringClass.`package`.name == basePackageName
424424

425425
/**
426426
* Creates setter or direct setter call to set a field.

0 commit comments

Comments
 (0)