Skip to content

Commit e201728

Browse files
committed
Simplified containsSameValueAs for BackReferenceRxGene
1 parent 137db6b commit e201728

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

core/src/main/kotlin/org/evomaster/core/search/gene/regex/BackReferenceRxGene.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ class BackReferenceRxGene(
6060

6161
override fun containsSameValueAs(other: Gene): Boolean {
6262
if (other !is BackReferenceRxGene) return false
63-
return captureGroup.getValueAsPrintableString(targetFormat = null) ==
64-
other.captureGroup.getValueAsPrintableString(targetFormat = null)
63+
return captureGroup == other.captureGroup
6564
}
6665

6766
override fun unsafeCopyValueFrom(other: Gene): Boolean {

0 commit comments

Comments
 (0)