You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (gene isSqlCompositeGene&& (fields.indices).all { fields[it].possiblySame(gene.fields[it]) }) {
100
-
var result =true
101
-
(fields.indices).forEach {
102
-
val r = fields[it].unsafeSetFromStringValue(gene.fields[it])
103
-
if (!r)
104
-
LoggingUtil.uniqueWarn(log, "cannot bind the field ${fields[it].name}")
105
-
result = result && r
106
-
}
107
-
if (!result)
108
-
LoggingUtil.uniqueWarn(log, "cannot bind the ${this::class.java.simpleName} (with the refType ${compositeTypeName ?:"null"}) with the object gene (with the refType ${gene.compositeTypeName ?:"null"})")
109
-
return result
84
+
var ok =true
85
+
for (i in fields.indices) {
86
+
ok = ok &&this.fields[i].unsafeCopyValueFrom(other.fields[i])
110
87
}
111
-
// might be cycle object gene
112
-
LoggingUtil.uniqueWarn(log, "cannot bind the ${this::class.java.simpleName} (with the refType ${compositeTypeName ?:"null"}) with ${gene::class.java.simpleName}")
0 commit comments