mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Work around the error prone warning
Error prone check doesn't like we pass a variable named 'end' as start parameter and 'start' as end. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=159567308
This commit is contained in:
parent
467fd2535c
commit
44f6dbb0cc
1 changed files with 5 additions and 5 deletions
|
|
@ -977,15 +977,15 @@ public final class Util {
|
|||
int expectedLength = length - percentCharacterCount * 2;
|
||||
StringBuilder builder = new StringBuilder(expectedLength);
|
||||
Matcher matcher = ESCAPED_CHARACTER_PATTERN.matcher(fileName);
|
||||
int endOfLastMatch = 0;
|
||||
int startOfNotEscaped = 0;
|
||||
while (percentCharacterCount > 0 && matcher.find()) {
|
||||
char unescapedCharacter = (char) Integer.parseInt(matcher.group(1), 16);
|
||||
builder.append(fileName, endOfLastMatch, matcher.start()).append(unescapedCharacter);
|
||||
endOfLastMatch = matcher.end();
|
||||
builder.append(fileName, startOfNotEscaped, matcher.start()).append(unescapedCharacter);
|
||||
startOfNotEscaped = matcher.end();
|
||||
percentCharacterCount--;
|
||||
}
|
||||
if (endOfLastMatch < length) {
|
||||
builder.append(fileName, endOfLastMatch, length);
|
||||
if (startOfNotEscaped < length) {
|
||||
builder.append(fileName, startOfNotEscaped, length);
|
||||
}
|
||||
if (builder.length() != expectedLength) {
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue