mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Clarity improvement: Use named variables
PiperOrigin-RevId: 231425073
This commit is contained in:
parent
52ff1820df
commit
0dd305461d
1 changed files with 8 additions and 4 deletions
|
|
@ -111,12 +111,16 @@ import java.util.regex.Pattern;
|
||||||
if (!matcher.matches()) {
|
if (!matcher.matches()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
int id = Integer.parseInt(matcher.group(1));
|
int id = Integer.parseInt(matcher.group(1));
|
||||||
String key = index.getKeyForId(id);
|
String key = index.getKeyForId(id);
|
||||||
return key == null
|
if (key == null) {
|
||||||
? null
|
return null;
|
||||||
: new SimpleCacheSpan(
|
}
|
||||||
key, Long.parseLong(matcher.group(2)), length, Long.parseLong(matcher.group(3)), file);
|
|
||||||
|
long position = Long.parseLong(matcher.group(2));
|
||||||
|
long lastAccessTime = Long.parseLong(matcher.group(3));
|
||||||
|
return new SimpleCacheSpan(key, position, length, lastAccessTime, file);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue