mbeckerle commented on code in PR #1176:
URL: https://github.com/apache/daffodil/pull/1176#discussion_r1516877962
##########
daffodil-runtime1/src/main/scala/org/apache/daffodil/runtime1/processors/VariableMap1.scala:
##########
@@ -278,8 +280,8 @@ class VariableMap private (vrds: Seq[VariableRuntimeData],
vTable: Array[Seq[Var
}
def cloneForSuspension(): VariableMap = {
- val newTable = new Array[Seq[VariableInstance]](vTable.size)
- Array.copy(vTable, 0, newTable, 0, vTable.size)
+ val newTable = new Array[Seq[VariableInstance]](vTable.length)
+ Array.copy(vTable, 0, newTable, 0, vTable.length)
new VariableMap(vrds, newTable)
Review Comment:
It seems length is preferred to size in Scala code style.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]