Skip to content

Commit

Permalink
[processor] fix dependencies. simplify check on oneToMany.
Browse files Browse the repository at this point in the history
  • Loading branch information
agrosner committed Aug 31, 2017
1 parent 38484a9 commit ebbb657
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class OneToMany<T : Any>(private val query: () -> ModelQueriable<T>) : ReadWrite
private var list: List<T>? = null

override fun getValue(thisRef: Any, property: KProperty<*>): List<T>? {
if (list?.isEmpty() ?: true) {
if (list?.isEmpty() != false) {
list = query().list
}
return list
Expand Down
8 changes: 4 additions & 4 deletions dbflow-processor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8

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

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

Expand Down

0 comments on commit ebbb657

Please sign in to comment.