Skip to content

Commit

Permalink
💬 add notice message to JsonObjectBuilder.putAll
Browse files Browse the repository at this point in the history
via @RefactoringCandidate. This talks about Kotlin/kotlinx.serialization#2308 possible future impact on this function
  • Loading branch information
TheFruxz committed Jul 7, 2023
1 parent 62cd3dc commit adef993
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/dev/fruxz/ascend/json/JsonBuilder.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package dev.fruxz.ascend.json

import dev.fruxz.ascend.annotation.RefactoringCandidate
import kotlinx.serialization.json.JsonObject
import kotlinx.serialization.json.JsonObjectBuilder
import kotlinx.serialization.json.buildJsonObject
Expand All @@ -10,6 +11,7 @@ import kotlinx.serialization.json.buildJsonObject
* @author Fruxz
* @since 2023.1
*/
@RefactoringCandidate(message = "As discussed in Kotlin/kotlinx.serialization#2308, this may be native in the future!")
fun JsonObjectBuilder.putAll(jsonObject: JsonObject) = jsonObject.entries.forEach {
this.put(it.key, it.value)
}
Expand Down

0 comments on commit adef993

Please sign in to comment.