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 {