Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
pyricau committed Apr 22, 2019
1 parent bc6276e commit 4a2b158
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import android.app.Dialog
import android.app.Fragment
import android.os.MessageQueue
import android.view.View
import leakcanary.LeakTraceElement.Holder.CLASS
import leakcanary.LeakTraceElement.Type.STATIC_FIELD
import java.util.ArrayList

Expand Down Expand Up @@ -119,13 +118,12 @@ enum class AndroidReachabilityInspectors(private val inspectorClass: Class<out R
class ClassInspector : Reachability.Inspector {
override fun expectedReachability(element: LeakTraceElement): Reachability {
val reference = element.reference
return if (reference !=null && reference.type == STATIC_FIELD) {
return if (reference != null && reference.type == STATIC_FIELD) {
Reachability.reachable("a class is always reachable")
} else Reachability.unknown()
}
}


class FragmentInspector : Reachability.Inspector {
override fun expectedReachability(element: LeakTraceElement): Reachability {
return unreachableWhen(
Expand Down

0 comments on commit 4a2b158

Please sign in to comment.