Skip to content

Commit

Permalink
build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Nov 24, 2023
1 parent e35ca62 commit 15fcdf8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import pekko.stream.connectors.elasticsearch.{ impl, _ }
import pekko.stream.javadsl.Source
import pekko.stream.{ Attributes, Materializer }
import pekko.util.ccompat.JavaConverters._
import com.fasterxml.jackson.core.{ JsonFactory, StreamReadConstraints, StreamWriteConstraints }
import com.fasterxml.jackson.core.{ JsonFactory, JsonFactoryBuilder, StreamReadConstraints, StreamWriteConstraints }
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.json.JsonMapper
import com.fasterxml.jackson.databind.node.{ ArrayNode, NumericNode }
Expand Down Expand Up @@ -180,7 +180,7 @@ object ElasticsearchSource {
val streamWriteConstraints = StreamWriteConstraints.builder
.maxNestingDepth(config.getInt("write.max-nesting-depth"))
.build
val jsonFactory = JsonFactory.builder
val jsonFactory = JsonFactory.builder.asInstanceOf[JsonFactoryBuilder]
.streamReadConstraints(streamReadConstraints)
.streamWriteConstraints(streamWriteConstraints)
.build
Expand Down

0 comments on commit 15fcdf8

Please sign in to comment.