]> source.dussan.org Git - jgit.git/commit
Add ObjectIdSerializer 31/117831/3
authorDavid Pursehouse <david.pursehouse@gmail.com>
Wed, 21 Feb 2018 03:40:47 +0000 (12:40 +0900)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 25 Feb 2018 22:15:01 +0000 (23:15 +0100)
commitf0b46e1db47bfc11dc7f39b9cb4fc30a78ea7f16
treee48c11ba851e6020d0a76efe6d102f832fb6c738
parenteba04da7bea255fedc5bd7e6e098d6a0767519ac
Add ObjectIdSerializer

This is based on the ObjectIdSerialization class written by Shawn Pearce
for the Gerrit Code Review project in 2009 [1]. As mentioned in the
commit message there, it should be part of core JGit.

This implementation is slightly different to Shawn's version. Rather
than having separate methods for null/non-null ids, single methods are
implemented with @Nullable annotations.

[1] https://gerrit-review.googlesource.com/c/gerrit/+/9792

Change-Id: I7599cf8bd1ecd546e2252783d6d672eb76804060
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/ObjectIdSerializerTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdSerializer.java [new file with mode: 0644]