mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-11 02:50: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")
|
@Suppress("PropertyName")
|
||||||
internal open lateinit var _description: JvmPluginDescription
|
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 {
|
final override val logger: MiraiLogger by lazy {
|
||||||
MiraiConsole.newLogger(
|
MiraiConsole.newLogger(
|
||||||
@ -59,7 +59,7 @@ internal abstract class JvmPluginInternal(
|
|||||||
|
|
||||||
private var firstRun = true
|
private var firstRun = true
|
||||||
|
|
||||||
override val dataFolder: File by lazy {
|
final override val dataFolder: File by lazy {
|
||||||
File(
|
File(
|
||||||
PluginManager.pluginsDataFolder,
|
PluginManager.pluginsDataFolder,
|
||||||
description.name
|
description.name
|
||||||
|
Loading…
Reference in New Issue
Block a user