From 0edc47cf657d98e120ec92c969b87ec969c57158 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Thu, 4 Sep 2025 22:01:44 +0700 Subject: [PATCH] fix: editor warnings --- .../kotlin/io/github/revenge/xposed/modules/CacheModule.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/io/github/revenge/xposed/modules/CacheModule.kt b/app/src/main/kotlin/io/github/revenge/xposed/modules/CacheModule.kt index 03efd16..7eeaba3 100644 --- a/app/src/main/kotlin/io/github/revenge/xposed/modules/CacheModule.kt +++ b/app/src/main/kotlin/io/github/revenge/xposed/modules/CacheModule.kt @@ -68,7 +68,7 @@ class CacheModule : Module() { } } -private class CacheVersionMismatchException(val expected: Int, val actual: Int) : +private class CacheVersionMismatchException(expected: Int, actual: Int) : Throwable("Expected cache version: $expected, but got version: $actual") data class ModulesCache( @@ -120,7 +120,7 @@ data class ModulesCache( } companion object { - val VERSION = 3 + const val VERSION = 3 fun loadFromFileOrNull(file: File): ModulesCache? { if (!file.exists() || file.length() <= 0L) return null @@ -208,7 +208,7 @@ data class AssetsCache( } companion object { - val VERSION = 2 + const val VERSION = 2 fun loadFromFileOrNull(file: File): AssetsCache? { if (!file.exists() || file.length() <= 0L) return null