Clarity improvement: Use named variables

PiperOrigin-RevId: 231425073
This commit is contained in:
olly 2019-01-29 18:16:25 +00:00 committed by Oliver Woodman
parent 52ff1820df
commit 0dd305461d

View file

@ -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);
} }
/** /**