Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove nullable operators
Browse files Browse the repository at this point in the history
reneleonhardt committed Apr 18, 2024
1 parent 0062b53 commit 225e4b1
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ import com.fasterxml.jackson.datatype.jdk8.Jdk8Module
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.intellij.util.xmlb.Converter

abstract class BaseConverter<T> protected constructor(private val typeReference: TypeReference<T>) : Converter<T?>() {
abstract class BaseConverter<T> protected constructor(private val typeReference: TypeReference<T>) : Converter<T>() {
private val objectMapper: ObjectMapper = ObjectMapper()
.registerModule(Jdk8Module())
.registerModule(JavaTimeModule())
2 changes: 1 addition & 1 deletion src/main/kotlin/ee/carlrobert/codegpt/util/MapConverter.kt
Original file line number Diff line number Diff line change
@@ -2,4 +2,4 @@ package ee.carlrobert.codegpt.util

import com.fasterxml.jackson.core.type.TypeReference

class MapConverter : BaseConverter<Map<String?, Any?>?>(object : TypeReference<Map<String?, Any?>?>() {})
class MapConverter : BaseConverter<Map<String, Any>>(object : TypeReference<Map<String, Any>>() {})

0 comments on commit 225e4b1

Please sign in to comment.