Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit 87f2231

Browse files
committed
Converterの変換関数のnullabilityを修正
変換処理は入力がnullだった場合呼び出されず、またnull入力に関してはデフォルト引数で記述すべきと判断したため
1 parent 08b5947 commit 87f2231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/mapk/conversion/KConvert.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ annotation class KConvertBy(val converters: Array<KClass<out AbstractKConverter<
99

1010
abstract class AbstractKConverter<A : Annotation, S : Any, D : Any>(protected val annotation: A) {
1111
abstract val srcClass: KClass<S>
12-
abstract fun convert(source: S?): D?
12+
abstract fun convert(source: S): D?
1313
}

0 commit comments

Comments
 (0)