From c4a4f851b717c5e47029bf5a71da2182b8b4d21f Mon Sep 17 00:00:00 2001 From: Robin Stocker Date: Sun, 15 Jul 2012 18:05:15 +0200 Subject: [PATCH] [findBugs] Make ChunkKey serializable It's used in DhtMissingChunkException, which is serializable. Change-Id: I2b76bc1bc373efd44214be4598a03c62c681a200 Signed-off-by: Robin Stocker --- .../src/org/eclipse/jgit/storage/dht/ChunkKey.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/ChunkKey.java b/org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/ChunkKey.java index 11a151f6b..ced37b31d 100644 --- a/org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/ChunkKey.java +++ b/org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/ChunkKey.java @@ -47,13 +47,16 @@ import static org.eclipse.jgit.storage.dht.KeyUtils.format32; import static org.eclipse.jgit.storage.dht.KeyUtils.parse32; import static org.eclipse.jgit.util.RawParseUtils.decode; +import java.io.Serializable; import java.text.MessageFormat; import org.eclipse.jgit.lib.Constants; import org.eclipse.jgit.lib.ObjectId; /** Unique identifier of a {@link PackChunk} in the DHT. */ -public final class ChunkKey implements RowKey { +public final class ChunkKey implements RowKey, Serializable { + private static final long serialVersionUID = 1L; + static final int KEYLEN = 49; /**