From a5aec660eb47a461bfd669da0cf5e84dbb69370c Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Tue, 22 Jun 2010 16:18:22 -0700 Subject: [PATCH] Remove pointless setOldObjectId in test Setting this value is pointless, because its automatically set by the refs.newUpdate call that created the update operation. The API is protected by default, because application level code, including this test, should not be calling it. Change-Id: I8867a4e8007892e2bd44a05d7dec619081081943 Signed-off-by: Shawn O. Pearce --- .../tst/org/eclipse/jgit/lib/RefUpdateTest.java | 1 - 1 file changed, 1 deletion(-) diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RefUpdateTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RefUpdateTest.java index c8a5b33f68..8a9bb52633 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RefUpdateTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RefUpdateTest.java @@ -834,7 +834,6 @@ public class RefUpdateTest extends SampleDataRepositoryTestCase { String msg, String refName) throws IOException { RefDirectory refs = (RefDirectory) db.getRefDatabase(); RefDirectoryUpdate update = refs.newUpdate(refName, true); - update.setOldObjectId(oldId); update.setNewObjectId(newId); refs.log(update, msg, true); } -- 2.39.5