Skip to content

Commit 78aeb17

Browse files
ebukreevEvgeny Bukreev
andauthored
Fix toString in JcRawNewArrayExpr (#316)
Co-authored-by: Evgeny Bukreev <ebukreev@ptsecurity.com>
1 parent 3b6a17f commit 78aeb17

File tree

1 file changed

+2
-2
lines changed
  • jacodb-api-jvm/src/main/kotlin/org/jacodb/api/jvm/cfg

1 file changed

+2
-2
lines changed

jacodb-api-jvm/src/main/kotlin/org/jacodb/api/jvm/cfg/JcRawInst.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,9 +618,9 @@ data class JcRawNewArrayExpr(
618618
companion object {
619619
private val regexToProcessDimensions = Regex("\\[(.*?)]")
620620

621-
private fun arrayTypeToStringWithDimensions(typeName: TypeName, dimensions: List<JcRawValue>) {
621+
private fun arrayTypeToStringWithDimensions(typeName: TypeName, dimensions: List<JcRawValue>): String {
622622
var curDim = 0
623-
regexToProcessDimensions.replace("$typeName") {
623+
return regexToProcessDimensions.replace("$typeName") {
624624
"[${dimensions.getOrNull(curDim++) ?: ""}]"
625625
}
626626
}

0 commit comments

Comments
 (0)