]> source.dussan.org Git - jgit.git/commit
Simplify NoteParser use of prefix.length() 11/2111/2
authorShawn O. Pearce <spearce@spearce.org>
Mon, 13 Dec 2010 18:21:04 +0000 (10:21 -0800)
committerChris Aniszczyk <caniszczyk@gmail.com>
Mon, 13 Dec 2010 22:01:39 +0000 (16:01 -0600)
commit5ac5871d16642bbb4b617adaded37f99dcd2fff8
tree46457a39353f98632c0d934b7a7e780813fe7dff
parent2bc13104a8ec2c31dc5198cf77d2cf261b8a44b8
Simplify NoteParser use of prefix.length()

Sasa pointed out we only ever use the length here, so instead of
holding onto the AbbreviatedObjectId, lets just hold onto the length
as a primitive int.

Change-Id: I2444f59f9fe5ddcaea4a3537d3f1064736ae3215
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
CC: Sasa Zivkov <zivkov@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/notes/NoteParser.java