Skip to content

Commit

Permalink
Negate condition safeSubtypeOf.
Browse files Browse the repository at this point in the history
  • Loading branch information
clementetb committed Sep 5, 2023
1 parent cee10ae commit 2dbe1bd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class BytecodeModifier {
// javassist.CannotCompileException: [source error] realmGet$id() not found in 'foo.Model'
addRealmAccessors(fieldAccessCtClass)

val fieldName: String = fieldAccess . fieldName
val fieldName: String = fieldAccess.fieldName
if (fieldAccess.isReader) {
fieldAccess.replace("\$_ = \$0.realmGet\$$fieldName();")
} else if (fieldAccess.isWriter) {
Expand All @@ -202,6 +202,6 @@ class BytecodeModifier {
fun CtClass.isRealmModelClass(): Boolean =
name != "io.realm.RealmObject" &&
(hasAnnotation(RealmClass::class.java) || hasRealmClassAnnotation(superclass)) &&
safeSubtypeOf(realmObjectProxyInterface)
!safeSubtypeOf(realmObjectProxyInterface)
}
}

0 comments on commit 2dbe1bd

Please sign in to comment.