Java Code Examples for com.android.tools.lint.detector.api.LintFix#ReplaceStringBuilder
The following examples show how to use
com.android.tools.lint.detector.api.LintFix#ReplaceStringBuilder .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: IssueFixBuilder.java From aircon with MIT License | 5 votes |
private LintFix.ReplaceStringBuilder newReplace() { return LintFix.create() .replace() .range(mContext.getLocation(mTarget)) .shortenNames() .reformat(true); }
Example 2
Source File: IssueDetector.java From aircon with MIT License | 4 votes |
protected LintFix.ReplaceStringBuilder replaceFix(UElement target) { return fix().replace() .range(mContext.getLocation(target)) .shortenNames() .reformat(true); }