Skip to content

Commit 284a26d

Browse files
committed
tmp
1 parent 86dcea2 commit 284a26d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ import java.util.IdentityHashMap
4343

4444
/**
4545
* Creates [UtAssembleModel] from any [UtModel] or it's inner models if possible
46-
* during generation test for [packageName].
46+
tmp * during generation test for [basePackageName].
4747
*
4848
* Needs utContext be set and Soot be initialized.
4949
*
5050
* Note: Caches class related information, can be reused if classes don't change.
5151
*/
52-
class AssembleModelGenerator(private val packageName: String) {
52+
class AssembleModelGenerator(private val basePackageName: String) {
5353

5454
//Instantiated models are stored to avoid cyclic references during reference graph analysis
5555
private val instantiatedModels: IdentityHashMap<UtModel, UtReferenceModel> =
@@ -256,7 +256,7 @@ class AssembleModelGenerator(private val packageName: String) {
256256
if (fieldId.isFinal) {
257257
throw AssembleException("Final field $fieldId can't be set in an object of the class $classId")
258258
}
259-
if (!fieldId.type.isAccessibleFrom(packageName)) {
259+
if (!fieldId.type.isAccessibleFrom(basePackageName)) {
260260
throw AssembleException(
261261
"Field $fieldId can't be set in an object of the class $classId because its type is inaccessible"
262262
)
@@ -398,10 +398,10 @@ class AssembleModelGenerator(private val packageName: String) {
398398
}
399399

400400
private val ClassId.isVisible : Boolean
401-
get() = this.isPublic || !this.isPrivate && this.packageName.startsWith(this@AssembleModelGenerator.packageName)
401+
get() = this.isPublic || !this.isPrivate && this.packageName.startsWith(basePackageName)
402402

403403
private val Constructor<*>.isVisible : Boolean
404-
get() = this.isPublic || !this.isPrivate && this.declaringClass.packageName.startsWith(packageName)
404+
get() = this.isPublic || !this.isPrivate && this.declaringClass.packageName.startsWith(basePackageName)
405405

406406
/**
407407
* Creates setter or direct setter call to set a field.

0 commit comments

Comments
 (0)