Commit 0dd30546 by olly Committed by Oliver Woodman

Clarity improvement: Use named variables

PiperOrigin-RevId: 231425073
parent 52ff1820
......@@ -111,12 +111,16 @@ import java.util.regex.Pattern;
if (!matcher.matches()) {
return null;
}
int id = Integer.parseInt(matcher.group(1));
String key = index.getKeyForId(id);
return key == null
? null
: new SimpleCacheSpan(
key, Long.parseLong(matcher.group(2)), length, Long.parseLong(matcher.group(3)), file);
if (key == null) {
return null;
}
long position = Long.parseLong(matcher.group(2));
long lastAccessTime = Long.parseLong(matcher.group(3));
return new SimpleCacheSpan(key, position, length, lastAccessTime, file);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment