From 1ec393e744cd16956cd800c9a56fcae19e150241 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Mon, 28 Dec 2009 15:55:49 -0800 Subject: Use Constants.OBJECT_ID_STRING_LENGTH instead of LEN * 2 A few locations were doing OBJECT_ID_LENGTH * 2 on their own, as the old STR_LEN constant wasn't visible. Replace them with the new public constant OBJECT_ID_STRING_LENGTH. Change-Id: Id39bddb52de8c65bb097de042e9d4ed99598201f Signed-off-by: Shawn O. Pearce --- org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java') diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java index dfbd891b0b..6a6053d941 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java @@ -70,7 +70,7 @@ class RefAdvertiser { private final StringBuilder tmpLine = new StringBuilder(100); - private final char[] tmpId = new char[2 * Constants.OBJECT_ID_LENGTH]; + private final char[] tmpId = new char[Constants.OBJECT_ID_STRING_LENGTH]; private final Set capablities = new LinkedHashSet(); -- cgit v1.2.3