From a19437667a970c713ea1cc70f2af3704630ffbc8 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Wed, 21 Feb 2024 11:32:50 +0700 Subject: [PATCH] Fix KOptional.ofNullable signature --- gradle.properties | 2 +- src/main/kotlin/ru/dbotthepony/kommons/util/KOptional.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index ff9271c..b82e9e0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ kotlin.code.style=official specifyKotlinAsDependency=false projectGroup=ru.dbotthepony.kommons -projectVersion=2.7.3 +projectVersion=2.7.4 guavaDepVersion=33.0.0 gsonDepVersion=2.8.9 diff --git a/src/main/kotlin/ru/dbotthepony/kommons/util/KOptional.kt b/src/main/kotlin/ru/dbotthepony/kommons/util/KOptional.kt index 42b1836..24882cb 100644 --- a/src/main/kotlin/ru/dbotthepony/kommons/util/KOptional.kt +++ b/src/main/kotlin/ru/dbotthepony/kommons/util/KOptional.kt @@ -130,7 +130,7 @@ class KOptional private constructor(private val _value: T, val isPresent: Boo } @JvmStatic - fun ofNullable(value: T): KOptional { + fun ofNullable(value: T?): KOptional { if (value == null) { return EMPTY as KOptional } else {