From d624e8f49669ea5867479136aca34ba954ff8370 Mon Sep 17 00:00:00 2001 From: Andrew Grosner <abgrosner@gmail.com> Date: Sat, 26 Aug 2017 11:05:15 -0400 Subject: [PATCH] [properties] update property extensions to accept nullable values on proper methods. --- .../dbflow/kotlinextensions/PropertyMethodExtensions.kt | 8 ++++---- usage2 | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dbflow-kotlinextensions/src/main/java/com/raizlabs/android/dbflow/kotlinextensions/PropertyMethodExtensions.kt b/dbflow-kotlinextensions/src/main/java/com/raizlabs/android/dbflow/kotlinextensions/PropertyMethodExtensions.kt index 37930eea1..31b3d8bff 100644 --- a/dbflow-kotlinextensions/src/main/java/com/raizlabs/android/dbflow/kotlinextensions/PropertyMethodExtensions.kt +++ b/dbflow-kotlinextensions/src/main/java/com/raizlabs/android/dbflow/kotlinextensions/PropertyMethodExtensions.kt @@ -10,13 +10,13 @@ import com.raizlabs.android.dbflow.sql.language.property.Property * Description: Provides property methods in via infix functions. */ -infix fun <T : Any> Property<T>.eq(value: T) = this.eq(value) +infix fun <T : Any> Property<T>.eq(value: T?) = this.eq(value) -infix fun <T : Any> Property<T>.`is`(value: T) = this.`is`(value) +infix fun <T : Any> Property<T>.`is`(value: T?) = this.`is`(value) -infix fun <T : Any> Property<T>.isNot(value: T) = this.isNot(value) +infix fun <T : Any> Property<T>.isNot(value: T?) = this.isNot(value) -infix fun <T : Any> Property<T>.notEq(value: T) = this.notEq(value) +infix fun <T : Any> Property<T>.notEq(value: T?) = this.notEq(value) infix fun <T : Any> Property<T>.like(value: String) = this.like(value) diff --git a/usage2 b/usage2 index b7028acd1..76b48d64b 160000 --- a/usage2 +++ b/usage2 @@ -1 +1 @@ -Subproject commit b7028acd1bf6f8250b7496afdb2ad57bf5b14a00 +Subproject commit 76b48d64bf3f1e5256a7003d2230a29e2fb07c7a