[EGIT PATCH 4/4] Switch usage of AnyObjectId.toString() to new AnyObjectId.name()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Two more places

Signed-off-by: Robin Rosenberg <robin.rosenberg@xxxxxxxxxx>
---
 .../spearce/jgit/lib/T0005_ShallowSpeedTest.java   |    2 +-
 .../org/spearce/jgit/lib/T0006_DeepSpeedTest.java  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/org.spearce.jgit.test/exttst/org/spearce/jgit/lib/T0005_ShallowSpeedTest.java b/org.spearce.jgit.test/exttst/org/spearce/jgit/lib/T0005_ShallowSpeedTest.java
index 3b8c60a..736e363 100644
--- a/org.spearce.jgit.test/exttst/org/spearce/jgit/lib/T0005_ShallowSpeedTest.java
+++ b/org.spearce.jgit.test/exttst/org/spearce/jgit/lib/T0005_ShallowSpeedTest.java
@@ -60,7 +60,7 @@ public void testShallowHistoryScan() throws IOException {
 				break;
 			ObjectId parentId = parents[0];
 			commit = db.mapCommit(parentId);
-			commit.getCommitId().toString();
+			commit.getCommitId().name();
 			++n;
 		}
 		assertEquals(12275, n);
diff --git a/org.spearce.jgit.test/exttst/org/spearce/jgit/lib/T0006_DeepSpeedTest.java b/org.spearce.jgit.test/exttst/org/spearce/jgit/lib/T0006_DeepSpeedTest.java
index 684bfba..f480b99 100644
--- a/org.spearce.jgit.test/exttst/org/spearce/jgit/lib/T0006_DeepSpeedTest.java
+++ b/org.spearce.jgit.test/exttst/org/spearce/jgit/lib/T0006_DeepSpeedTest.java
@@ -62,7 +62,7 @@ public void testDeepHistoryScan() throws IOException {
 			commit = db.mapCommit(parentId);
 			TreeEntry m = commit.getTree().findBlobMember("net/netfilter/nf_queue.c");
 			if (m != null)
-				commit.getCommitId().toString();
+				commit.getCommitId().name();
 			++n;
 		}
 
-- 
1.6.0.1.161.g7f314

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux