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 @@ -569,6 +569,21 @@ class UtLambdaModel(
569
569
? : error(" More than one method with name $lambdaName found in class: ${declaringClass.canonicalName} " )
570
570
571
571
override fun toString (): String = " Anonymous function $lambdaName implementing functional interface $declaringClass "
572
+
573
+ override fun equals (other : Any? ): Boolean {
574
+ if (this == = other) return true
575
+ if (javaClass != other?.javaClass) return false
576
+
577
+ other as UtLambdaModel
578
+
579
+ if (id != other.id) return false
580
+
581
+ return true
582
+ }
583
+
584
+ override fun hashCode (): Int {
585
+ return id ? : 0
586
+ }
572
587
}
573
588
574
589
/* *
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