Skip to content

Commit bb2637a

Browse files
perf(client): create one json mapper
1 parent c56994a commit bb2637a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

orb-java-core/src/main/kotlin/com/withorb/api/core/ObjectMappers.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ import java.time.ZoneId
2929
import java.time.format.DateTimeFormatter
3030
import java.time.temporal.ChronoField
3131

32-
fun jsonMapper(): JsonMapper =
32+
fun jsonMapper(): JsonMapper = JSON_MAPPER
33+
34+
private val JSON_MAPPER: JsonMapper =
3335
JsonMapper.builder()
3436
.addModule(kotlinModule())
3537
.addModule(Jdk8Module())

0 commit comments

Comments
 (0)