summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2012-07-26 17:21:51 -0400
committerGerrit Code Review @ Eclipse.org <gerrit@eclipse.org>2012-07-26 17:21:51 -0400
commitd47403ea941e38377425fe55c71c43a45ceef8ca (patch)
treef45239b78e7a613321250ebaf96811b1ed03bc66
parent778fdfaec1d1f5b16775264ebf728ee882000154 (diff)
parentc4a4f851b717c5e47029bf5a71da2182b8b4d21f (diff)
downloadjgit-d47403ea941e38377425fe55c71c43a45ceef8ca.tar.gz
jgit-d47403ea941e38377425fe55c71c43a45ceef8ca.zip
Merge "[findBugs] Make ChunkKey serializable"
-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;
/**