Skip to content

Commit 50b29d9

Browse files
committed
Minor test cleanup to ease merging into master/3.0
1 parent 5331d97 commit 50b29d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
package com.fasterxml.jackson.module.kotlin
22

3+
import com.fasterxml.jackson.core.PrettyPrinter
34
import com.fasterxml.jackson.core.util.DefaultIndenter
45
import com.fasterxml.jackson.core.util.DefaultPrettyPrinter
56
import com.fasterxml.jackson.databind.ObjectMapper
67
import com.fasterxml.jackson.databind.ObjectWriter
78

89
// This `printer` is used to match the output from Jackson to the newline char of the source code.
910
// If this is removed, comparisons will fail in a Windows-like platform.
10-
val LF_PRINTER: DefaultPrettyPrinter =
11+
val LF_PRINTER: PrettyPrinter =
1112
DefaultPrettyPrinter().withObjectIndenter(DefaultIndenter().withLinefeed("\n"))
1213

13-
fun ObjectMapper.testPrettyWriter(): ObjectWriter = this.writer(LF_PRINTER)
14+
fun ObjectMapper.testPrettyWriter(): ObjectWriter = this.writer().with(LF_PRINTER)

0 commit comments

Comments
 (0)