aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorRobin Stocker <robin@nibor.org>2010-10-28 17:40:15 +0200
committerRobin Stocker <robin@nibor.org>2010-10-28 17:40:15 +0200
commit80a4ea95e4a27c3830a89adc4ed0936c9f6b3239 (patch)
tree380eb1123bcdd3a325ea864a439d5bde9f32c5ae /org.eclipse.jgit
parent79ca8a2d19fb536c15219a1856aa23b00e9344ff (diff)
downloadjgit-80a4ea95e4a27c3830a89adc4ed0936c9f6b3239.tar.gz
jgit-80a4ea95e4a27c3830a89adc4ed0936c9f6b3239.zip
Make AbbreviatedObjectId serializable
AmbiguousObjectException contains an AbbreviatedObjectId and is supposed to be serializable, so it should be serializable as well. Change-Id: I8056e78aee20fdd3cb9600b52cd8ed988544293d
Diffstat (limited to 'org.eclipse.jgit')
-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 38937410d0..57bea42db4 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>