Add comment in PatchListEntry about bumping serial UID in PatchListKey

Change-Id: Ie42c8c98ac27092283160881e659b436119f61a2
This commit is contained in:
David Pursehouse
2015-10-15 00:12:43 +00:00
parent a8f17980c7
commit 5bbfb22d36

View File

@@ -63,6 +63,8 @@ public class PatchListEntry {
private final int insertions;
private final int deletions;
private final long sizeDelta;
// Note: When adding new fields, the serialVersionUID in PatchListKey must be
// incremented so that entries from the cache are automatically invalidated.
PatchListEntry(FileHeader hdr, List<Edit> editList, long sizeDelta) {
changeType = toChangeType(hdr);