Skip to content

Commit

Permalink
fix: replace deprecated ServiceManager by new Kotlin method
Browse files Browse the repository at this point in the history
  • Loading branch information
leomillon committed Oct 7, 2021
1 parent bfb97b9 commit 7aa6fce
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package com.github.leomillon.uuidgenerator.popup.ulid

import com.github.leomillon.uuidgenerator.settings.ulid.ULIDFormatSettings
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.ServiceManager
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
import com.intellij.openapi.components.service
import com.intellij.util.xmlb.XmlSerializerUtil
import org.jetbrains.annotations.Nullable

Expand All @@ -14,7 +14,7 @@ class ULIDGeneratorPopupSettings : PersistentStateComponent<ULIDGeneratorPopupSe

companion object {
val instance: ULIDGeneratorPopupSettings
get() = ServiceManager.getService(ULIDGeneratorPopupSettings::class.java)
get() = service()
}

/**
Expand Down

0 comments on commit 7aa6fce

Please sign in to comment.