Skip to content

Commit ebbb657

Browse files
committed
[processor] fix dependencies. simplify check on oneToMany.
1 parent 38484a9 commit ebbb657

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dbflow-kotlinextensions/src/main/java/com/raizlabs/android/dbflow/kotlinextensions/OneToManyExtensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class OneToMany<T : Any>(private val query: () -> ModelQueriable<T>) : ReadWrite
1515
private var list: List<T>? = null
1616

1717
override fun getValue(thisRef: Any, property: KProperty<*>): List<T>? {
18-
if (list?.isEmpty() ?: true) {
18+
if (list?.isEmpty() != false) {
1919
list = query().list
2020
}
2121
return list

dbflow-processor/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ targetCompatibility = JavaVersion.VERSION_1_8
77
sourceCompatibility = JavaVersion.VERSION_1_8
88

99
dependencies {
10-
api project("${dbflow_project_prefix}dbflow-core")
11-
api 'com.squareup:javapoet:1.9.0'
12-
api 'com.github.agrosner:KPoet:1.0.0'
13-
api "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
10+
compile project("${dbflow_project_prefix}dbflow-core")
11+
compile 'com.squareup:javapoet:1.9.0'
12+
compile 'com.github.agrosner:KPoet:1.0.0'
13+
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
1414

1515
compileOnly 'org.glassfish:javax.annotation:10.0-b28'
1616

0 commit comments

Comments
 (0)