Skip to content

Conversation

reneleonhardt
Copy link
Contributor

@reneleonhardt reneleonhardt commented Apr 18, 2024

DownloadingUtil has already been converted in DBRX #462

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?>() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove the nullable operators?


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

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed them in both converters

@carlrobertoh carlrobertoh merged commit 29b36c5 into carlrobertoh:master Apr 18, 2024
carlrobertoh pushed a commit that referenced this pull request Apr 21, 2024
* chore: Convert utils to Kotlin

* Remove nullable operators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants