forked from square/leakcanary
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reason for ignoring to analysis result
* When creating an ExcludedRef rule, we can now provide a name for that rule and a reason. * When such a rule applies to an analysis result, it is stored in the leak trace element. * Also moved the lengthy comments in AndroidExcludedRefs to now be ExcludedRef reasons, embedded in LeakCanary. Fixes square#365
- Loading branch information
Showing
4 changed files
with
132 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.squareup.leakcanary; | ||
|
||
import java.io.Serializable; | ||
|
||
public final class Exclusion implements Serializable { | ||
public final String name; | ||
public final String reason; | ||
public final boolean alwaysExclude; | ||
public final String matching; | ||
|
||
Exclusion(ExcludedRefs.ParamsBuilder builder) { | ||
this.name = builder.name; | ||
this.reason = builder.reason; | ||
this.alwaysExclude = builder.alwaysExclude; | ||
this.matching = builder.matching; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters