mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
- Registry was converted from java to kotlin, then resolve inside sources start to return functions from the companion object. At the same time, decompiled code still returns bridges from Registry itself and thus was not affected by the bug. - Test covers now only "sources" case, because the compiled case is covered by java/k1 tests. ^KTIJ-31444 fixed GitOrigin-RevId: 59dfa24c89b89057e6af3e5da939cf7a93bdb8fa
24 lines
1.3 KiB
Kotlin
24 lines
1.3 KiB
Kotlin
import com.intellij.openapi.util.registry.Registry
|
|
import com.intellij.openapi.util.registry.RegistryManager
|
|
|
|
class RegistryKeyId {
|
|
|
|
fun registry() {
|
|
Registry.intValue("vcs.showConsole") // registry.properties
|
|
Registry.intValue("my.plugin.key") // registryKey.xml
|
|
|
|
Registry.get("<error descr="Cannot resolve registry key 'INVALID_VALUE'">INVALID_VALUE</error>")
|
|
Registry.`is`("<error descr="Cannot resolve registry key 'INVALID_VALUE'">INVALID_VALUE</error>")
|
|
Registry.intValue("<error descr="Cannot resolve registry key 'INVALID_VALUE'">INVALID_VALUE</error>")
|
|
Registry.doubleValue("<error descr="Cannot resolve registry key 'INVALID_VALUE'">INVALID_VALUE</error>")
|
|
Registry.stringValue("<error descr="Cannot resolve registry key 'INVALID_VALUE'">INVALID_VALUE</error>")
|
|
}
|
|
|
|
fun registryManager() {
|
|
val registryManager = RegistryManager.getInstance()
|
|
registryManager.`is`("<error descr="Cannot resolve registry key 'INVALID_VALUE'">INVALID_VALUE</error>")
|
|
registryManager.intValue("<error descr="Cannot resolve registry key 'INVALID_VALUE'">INVALID_VALUE</error>")
|
|
registryManager.intValue("<error descr="Cannot resolve registry key 'INVALID_VALUE'">INVALID_VALUE</error>", 123)
|
|
registryManager.get("<error descr="Cannot resolve registry key 'INVALID_VALUE'">INVALID_VALUE</error>")
|
|
}
|
|
} |