Skip to content

Commit

Permalink
Fixed compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
vestrel00 committed Dec 17, 2021
1 parent 01c5f35 commit 896ded7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import contacts.core.entities.custom.AbstractCustomDataCursor
internal class TestDataCursor(cursor: Cursor, includeFields: Set<TestDataField>) :
AbstractCustomDataCursor<TestDataField>(cursor, includeFields) {

val value: String by nonNullString(TestDataFields.Value, TestDataEntity.VALUE)
val value: String by nonNullString(TestDataFields.Value, "test")
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import contacts.core.entities.custom.CustomDataFieldMapper

internal class TestDataFieldMapper : CustomDataFieldMapper<TestDataField, TestDataEntity> {

override fun valueOf(field: TestDataField, customDataEntity: TestDataEntity): String = when (field) {
override fun valueOf(field: TestDataField, customDataEntity: TestDataEntity): String? = when (field) {
TestDataFields.Value -> customDataEntity.value
else -> throw TestDataException("Unrecognized test data field $field")
}
Expand Down

0 comments on commit 896ded7

Please sign in to comment.