//leakcanary-repo/shark/IgnoredReferenceMatcher
IgnoredReferenceMatcher¶
[jvm]\ class IgnoredReferenceMatcher(val pattern: ReferencePattern, val patternApplies: (HeapGraph) -> Boolean = ALWAYS) : ReferenceMatcher
IgnoredReferenceMatcher should be used to match references that cannot ever create leaks. The shortest path finder will never go through matching references.
Constructors¶
| IgnoredReferenceMatcher | [jvm] constructor(pattern: ReferencePattern, patternApplies: (HeapGraph) -> Boolean = ALWAYS) |
Functions¶
| Name | Summary |
|---|---|
| toString | [jvm] open override fun toString(): String |
Properties¶
| Name | Summary |
|---|---|
| pattern | [jvm] open override val pattern: ReferencePattern The pattern that references will be matched against. |
| patternApplies | [jvm] open override val patternApplies: (HeapGraph) -> Boolean Whether the identified leak may exist in the provided HeapGraph. Defaults to true. If the heap dump comes from a VM that runs a different version of the library that doesn’t have the leak, then this should return false. |