use of org.gradle.internal.fingerprint.FileSystemLocationFingerprint in project gradle by gradle.
the class FingerprintMapSerializer method read.
@Override
public Map<String, FileSystemLocationFingerprint> read(Decoder decoder) throws IOException {
int fingerprintCount = decoder.readSmallInt();
ImmutableMap.Builder<String, FileSystemLocationFingerprint> fingerprints = ImmutableMap.builderWithExpectedSize(fingerprintCount);
for (int i = 0; i < fingerprintCount; i++) {
String absolutePath = stringInterner.intern(decoder.readString());
FileSystemLocationFingerprint fingerprint = readFingerprint(decoder);
fingerprints.put(absolutePath, fingerprint);
}
return fingerprints.build();
}
Aggregations