Skip to content

Commit bb05799

Browse files
authored
Merge pull request #140 from i-on-project/fix/gh-139-fix-dates
Start using the correct ObjectMapper
2 parents ebbd8f4 + 82dccfb commit bb05799

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

code/jvm/src/main/kotlin/org/ionproject/codegarten/CodeGartenApplication.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication
1919
import org.springframework.boot.context.properties.ConfigurationPropertiesScan
2020
import org.springframework.boot.runApplication
2121
import org.springframework.context.annotation.Bean
22-
import org.springframework.context.annotation.DependsOn
23-
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder
2422
import org.springframework.scheduling.annotation.EnableScheduling
2523
import org.springframework.stereotype.Component
2624
import org.springframework.util.Base64Utils
@@ -67,7 +65,6 @@ class CodeGartenApplication(private val configProperties: ConfigProperties) {
6765
}
6866

6967
@Bean
70-
@DependsOn("getJacksonMapper")
7168
fun getGithubInterface(mapper: ObjectMapper): GitHubInterface {
7269
val ghAppPropertiesEnv = System.getenv(configProperties.gitHubAppPropertiesEnv)
7370
?: throw IllegalStateException("Missing ${configProperties.gitHubAppPropertiesEnv} environment variable!")
@@ -100,11 +97,6 @@ class CodeGartenApplication(private val configProperties: ConfigProperties) {
10097

10198
@Bean
10299
fun getCryptoUtils() = cryptoUtils
103-
104-
@Bean
105-
fun getJacksonMapper(): ObjectMapper {
106-
return Jackson2ObjectMapperBuilder().build()
107-
}
108100
}
109101

110102
@Component

0 commit comments

Comments
 (0)