mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
Make JvmPluginInternal.description and .dataFolder final
This commit is contained in:
parent
6ee1f91314
commit
8d2009d273
@ -49,7 +49,7 @@ internal abstract class JvmPluginInternal(
|
||||
@Suppress("PropertyName")
|
||||
internal open lateinit var _description: JvmPluginDescription
|
||||
|
||||
override val description: JvmPluginDescription get() = _description
|
||||
final override val description: JvmPluginDescription get() = _description
|
||||
|
||||
final override val logger: MiraiLogger by lazy {
|
||||
MiraiConsole.newLogger(
|
||||
@ -59,7 +59,7 @@ internal abstract class JvmPluginInternal(
|
||||
|
||||
private var firstRun = true
|
||||
|
||||
override val dataFolder: File by lazy {
|
||||
final override val dataFolder: File by lazy {
|
||||
File(
|
||||
PluginManager.pluginsDataFolder,
|
||||
description.name
|
||||
|
Loading…
Reference in New Issue
Block a user