From 80a4ea95e4a27c3830a89adc4ed0936c9f6b3239 Mon Sep 17 00:00:00 2001 From: Robin Stocker Date: Thu, 28 Oct 2010 17:40:15 +0200 Subject: [PATCH] Make AbbreviatedObjectId serializable AmbiguousObjectException contains an AbbreviatedObjectId and is supposed to be serializable, so it should be serializable as well. Change-Id: I8056e78aee20fdd3cb9600b52cd8ed988544293d --- .../src/org/eclipse/jgit/lib/AbbreviatedObjectId.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 38937410d..57bea42db 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 @@ * 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. *