Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Convert utils to Kotlin #473

Merged
merged 2 commits into from
Apr 18, 2024

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
2 checks passed
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