aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Stocker2010-10-28 11:40:15 (EDT)
committerRobin Stocker2010-10-28 11:40:15 (EDT)
commit80a4ea95e4a27c3830a89adc4ed0936c9f6b3239 (patch)
tree380eb1123bcdd3a325ea864a439d5bde9f32c5ae
parent79ca8a2d19fb536c15219a1856aa23b00e9344ff (diff)
downloadjgit-80a4ea95e4a27c3830a89adc4ed0936c9f6b3239.zip
jgit-80a4ea95e4a27c3830a89adc4ed0936c9f6b3239.tar.gz
jgit-80a4ea95e4a27c3830a89adc4ed0936c9f6b3239.tar.bz2
Make AbbreviatedObjectId serializablerefs/changes/12/1812/1
AmbiguousObjectException contains an AbbreviatedObjectId and is supposed to be serializable, so it should be serializable as well. Change-Id: I8056e78aee20fdd3cb9600b52cd8ed988544293d
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/AbbreviatedObjectId.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/AbbreviatedObjectId.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/AbbreviatedObjectId.java
index 3893741..57bea42 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/AbbreviatedObjectId.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/AbbreviatedObjectId.java
@@ -43,6 +43,7 @@
package org.eclipse.jgit.lib;
+import java.io.Serializable;
import java.text.MessageFormat;
import org.eclipse.jgit.JGitText;
@@ -61,7 +62,9 @@ import org.eclipse.jgit.util.RawParseUtils;
* This class converts the hex string into a binary form, to make it more
* efficient for matching against an object.
*/
-public final class AbbreviatedObjectId {
+public final class AbbreviatedObjectId implements Serializable {
+ private static final long serialVersionUID = 1L;
+
/**
* Test a string of characters to verify it is a hex format.
* <p>