File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/test/kotlin/com/fasterxml/jackson/module/kotlin Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
package com.fasterxml.jackson.module.kotlin
2
2
3
+ import com.fasterxml.jackson.core.PrettyPrinter
3
4
import com.fasterxml.jackson.core.util.DefaultIndenter
4
5
import com.fasterxml.jackson.core.util.DefaultPrettyPrinter
5
6
import com.fasterxml.jackson.databind.ObjectMapper
6
7
import com.fasterxml.jackson.databind.ObjectWriter
7
8
8
9
// This `printer` is used to match the output from Jackson to the newline char of the source code.
9
10
// If this is removed, comparisons will fail in a Windows-like platform.
10
- val LF_PRINTER : DefaultPrettyPrinter =
11
+ val LF_PRINTER : PrettyPrinter =
11
12
DefaultPrettyPrinter ().withObjectIndenter(DefaultIndenter ().withLinefeed(" \n " ))
12
13
13
- fun ObjectMapper.testPrettyWriter (): ObjectWriter = this .writer(LF_PRINTER )
14
+ fun ObjectMapper.testPrettyWriter (): ObjectWriter = this .writer(). with ( LF_PRINTER )
You can’t perform that action at this time.
0 commit comments