]> source.dussan.org Git - jgit.git/commitdiff
[findBugs] Make ChunkKey serializable 86/6786/1
authorRobin Stocker <robin@nibor.org>
Sun, 15 Jul 2012 16:05:15 +0000 (18:05 +0200)
committerRobin Stocker <robin@nibor.org>
Sun, 15 Jul 2012 16:05:15 +0000 (18:05 +0200)
It's used in DhtMissingChunkException, which is serializable.

Change-Id: I2b76bc1bc373efd44214be4598a03c62c681a200
Signed-off-by: Robin Stocker <robin@nibor.org>
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/ChunkKey.java

index 11a151f6ba5c52ac3a9f99e863a2840241abcc6a..ced37b31dfb2714af36f0902618287c954e7d74e 100644 (file)
@@ -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;
 
        /**