aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2009-12-28 15:55:49 -0800
committerShawn O. Pearce <spearce@spearce.org>2009-12-28 15:58:37 -0800
commit1ec393e744cd16956cd800c9a56fcae19e150241 (patch)
treea4a1f34838e5d9e01df2ee4fd5f020d55ba06b5e /org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java
parentdb9f8126db23ba90be62777f26a692c7adbb10d9 (diff)
downloadjgit-1ec393e744cd16956cd800c9a56fcae19e150241.tar.gz
jgit-1ec393e744cd16956cd800c9a56fcae19e150241.zip
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 <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/transport/RefAdvertiser.java2
1 files changed, 1 insertions, 1 deletions
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<String> capablities = new LinkedHashSet<String>();