summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.storage.dht
diff options
context:
space:
mode:
authorRobin Stocker <robin@nibor.org>2012-07-15 18:05:15 +0200
committerRobin Stocker <robin@nibor.org>2012-07-15 18:05:15 +0200
commitc4a4f851b717c5e47029bf5a71da2182b8b4d21f (patch)
tree1adae1c0113cd471f9ff0f67110841f7e6f1ca9a /org.eclipse.jgit.storage.dht
parent75b60afe41f6ef53f7246150aa7648ba414720b4 (diff)
downloadjgit-c4a4f851b717c5e47029bf5a71da2182b8b4d21f.tar.gz
jgit-c4a4f851b717c5e47029bf5a71da2182b8b4d21f.zip
[findBugs] Make ChunkKey serializable
It's used in DhtMissingChunkException, which is serializable. Change-Id: I2b76bc1bc373efd44214be4598a03c62c681a200 Signed-off-by: Robin Stocker <robin@nibor.org>
Diffstat (limited to 'org.eclipse.jgit.storage.dht')
-rw-r--r--org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/ChunkKey.java5
1 files changed, 4 insertions, 1 deletions
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 11a151f6ba..ced37b31df 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;
/**