From 087143b02258d276552887bebdfe7e8bad64e599 Mon Sep 17 00:00:00 2001 From: sergeych Date: Wed, 18 Feb 2026 21:39:01 +0300 Subject: [PATCH] Remove remaining JVM warnings --- .../kotlin/net/sergeych/lyng/io/fs/LyngFsModule.kt | 6 +++--- lynglib/src/jvmTest/kotlin/LynonTests.kt | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lyngio/src/commonMain/kotlin/net/sergeych/lyng/io/fs/LyngFsModule.kt b/lyngio/src/commonMain/kotlin/net/sergeych/lyng/io/fs/LyngFsModule.kt index d65eeee..1ae8b86 100644 --- a/lyngio/src/commonMain/kotlin/net/sergeych/lyng/io/fs/LyngFsModule.kt +++ b/lyngio/src/commonMain/kotlin/net/sergeych/lyng/io/fs/LyngFsModule.kt @@ -314,9 +314,9 @@ private suspend fun buildFsModule(module: ModuleScope, policy: FsAccessPolicy) { ObjMap(mutableMapOf( ObjString("isFile") to ObjBool(m.isRegularFile), ObjString("isDirectory") to ObjBool(m.isDirectory), - ObjString("size") to (m.size?.toLong() ?: 0L).toObj(), - ObjString("createdAtMillis") to ((m.createdAtMillis ?: 0L)).toObj(), - ObjString("modifiedAtMillis") to ((m.modifiedAtMillis ?: 0L)).toObj(), + ObjString("size") to (m.size ?: 0L).toObj(), + ObjString("createdAtMillis") to (m.createdAtMillis ?: 0L).toObj(), + ObjString("modifiedAtMillis") to (m.modifiedAtMillis ?: 0L).toObj(), ObjString("isSymlink") to ObjBool(m.isSymlink), )) } diff --git a/lynglib/src/jvmTest/kotlin/LynonTests.kt b/lynglib/src/jvmTest/kotlin/LynonTests.kt index 1836559..847f6e6 100644 --- a/lynglib/src/jvmTest/kotlin/LynonTests.kt +++ b/lynglib/src/jvmTest/kotlin/LynonTests.kt @@ -729,7 +729,6 @@ class Wallet( id, ownerKey, balance=0, createdAt=Instant.now().truncateToSecond( val decoded = ObjLynonClass.decodeAny(scope, ObjLynonClass.encodeAny(scope, cp)) val decodedInstance = decoded as ObjInstance assertEquals(cp.objClass.className, decodedInstance.objClass.className) - assertTrue(decoded is ObjInstance) } @Test