File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
utbot-framework/src/main/kotlin/org/utbot/engine
utbot-framework-api/src/main/kotlin/org/utbot/framework/plugin/api Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -566,6 +566,21 @@ class UtLambdaModel(
566
566
? : error(" More than one method with name $lambdaName found in class: ${declaringClass.canonicalName} " )
567
567
568
568
override fun toString (): String = " Anonymous function $lambdaName implementing functional interface $declaringClass "
569
+
570
+ override fun equals (other : Any? ): Boolean {
571
+ if (this == = other) return true
572
+ if (javaClass != other?.javaClass) return false
573
+
574
+ other as UtLambdaModel
575
+
576
+ if (id != other.id) return false
577
+
578
+ return true
579
+ }
580
+
581
+ override fun hashCode (): Int {
582
+ return id ? : 0
583
+ }
569
584
}
570
585
571
586
/* *
Original file line number Diff line number Diff line change @@ -662,12 +662,15 @@ class Resolver(
662
662
builder.toString()
663
663
}
664
664
665
- return UtLambdaModel (
665
+ val lambdaModel = UtLambdaModel (
666
666
id = addr,
667
667
samType = samType,
668
668
declaringClass = declaringClass.id,
669
669
lambdaName = lambdaName
670
670
)
671
+ addConstructedModel(addr, lambdaModel)
672
+
673
+ return lambdaModel
671
674
}
672
675
673
676
private fun constructEnum (addr : Address , type : RefType , clazz : Class <* >): UtEnumConstantModel {
You can’t perform that action at this time.
0 commit comments