Get rid of a duplicate constant for SHA-1 length
commitdb9f8126db23ba90be62777f26a692c7adbb10d9
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 28 Dec 2009 15:54:43 +0000 (28 16:54 +0100)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 28 Dec 2009 15:54:43 +0000 (28 16:54 +0100)
tree4b642c02b1327e8a5367cf8af7935673c3aefa17
parent2086fdaedd5e71621470865c34ad075d2668af99
Get rid of a duplicate constant for SHA-1 length

Since Constants.OBJECT_ID_LENGTH is a compile time constant we
can be sure that it will always be inlined. The same goes for the
associated constant STR_LEN which is now refactored to the Constant
class and given a name better suited for wider use.

Change-Id: I03f52131e64edcd0aa74bbbf36e7d42faaf4a698
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.eclipse.jgit/src/org/eclipse/jgit/lib/AbbreviatedObjectId.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/AnyObjectId.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Constants.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/MutableObjectId.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectChecker.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectId.java