Skip to content

Commit

Permalink
Drop usage of deprecated Any?.freeze() in K/N target (#2819)
Browse files Browse the repository at this point in the history
The legacy memory model was removed from the K/N runtime in 1.9.20.
Now, this function does nothing, and its usages can be safely dropped.

Worker.execute functions no longer require the argument to be frozen,
as objects can no longer be frozen.
  • Loading branch information
qurbonzoda authored Sep 18, 2024
1 parent d9753af commit 595bcbd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class MultiWorkerJsonTest {
assertEquals(PlainOne(42), json().decodeFromString("""{"one":42,"two":239}"""))
}
}
worker.executeAfter(1000, operation.freeze())
worker.executeAfter(1000, operation)
for (i in 0..999) {
assertEquals(PlainTwo(239), json().decodeFromString("""{"one":42,"two":239}"""))
}
Expand Down

0 comments on commit 595bcbd

Please sign in to comment.