Skip to content

Commit

Permalink
Merge pull request #8 from udaan-com/bugfix/sql-query-sniffer/object-…
Browse files Browse the repository at this point in the history
…mapper

bugfix/sql query sniffer/object mapper
  • Loading branch information
rajeshdixitudaan authored Jan 16, 2022
2 parents 5bd8f20 + 71ca0e7 commit 495c85f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.github.thewisenerd.linters.sidekt.rules

import com.fasterxml.jackson.module.kotlin.KotlinModule
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.databind.ObjectMapper
import io.github.thewisenerd.linters.sidekt.helpers.Debugger
import io.gitlab.arturbosch.detekt.api.*
import org.jetbrains.kotlin.psi.*
Expand Down Expand Up @@ -268,7 +267,7 @@ class SQLQuerySniffer(config: Config): Rule(config) {
private val stringTemplateMarker = "@UseStringTemplate3StatementLocator"
private var scanResourceFiles = false

private val objectMapper by lazy { jacksonObjectMapper().registerModule(KotlinModule()) }
private val objectMapper by lazy { ObjectMapper() }
}
}

Expand Down

0 comments on commit 495c85f

Please sign in to comment.