diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2021-11-24 23:21:25 +0100 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2021-11-24 23:23:03 +0100 |
commit | c20dd8206e2c6619c4851a202fa0217255d070dd (patch) | |
tree | 391d0d41fe2040068b0783697ef4eaa0bf3f6598 /org.eclipse.jgit.pgm.test/tst | |
parent | 75c716f5d7cdb0f4978c42a4dcae6c6ee4dcb42d (diff) | |
download | jgit-c20dd8206e2c6619c4851a202fa0217255d070dd.tar.gz jgit-c20dd8206e2c6619c4851a202fa0217255d070dd.zip |
RevListTest: fix warning that method parameter hides field 'git'
Change-Id: I12bd44e8bf75010ada2dff60f519fea61c7459de
Diffstat (limited to 'org.eclipse.jgit.pgm.test/tst')
-rw-r--r-- | org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/RevListTest.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/RevListTest.java b/org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/RevListTest.java index 06fddc29d9..7c6cf4290e 100644 --- a/org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/RevListTest.java +++ b/org.eclipse.jgit.pgm.test/tst/org/eclipse/jgit/pgm/RevListTest.java @@ -55,21 +55,21 @@ public class RevListTest extends CLIRepositoryTestCase { assertEquals(expect, result); } - private List<RevCommit> createCommitsForParentsFlag(Git git) + private List<RevCommit> createCommitsForParentsFlag(Git repo) throws Exception { List<RevCommit> commits = new ArrayList<>(); writeTrashFile("Test1.txt", "Hello world"); - git.add().addFilepattern("Test1.txt").call(); - commits.add(git.commit().setMessage("commit#0").call()); + repo.add().addFilepattern("Test1.txt").call(); + commits.add(repo.commit().setMessage("commit#0").call()); writeTrashFile("Test.txt", "Hello world!"); - git.add().addFilepattern("Test.txt").call(); - commits.add(git.commit().setMessage("commit#1").call()); + repo.add().addFilepattern("Test.txt").call(); + commits.add(repo.commit().setMessage("commit#1").call()); writeTrashFile("Test1.txt", "Hello world!!"); - git.add().addFilepattern("Test1.txt").call(); - commits.add(git.commit().setMessage("commit#2").call()); + repo.add().addFilepattern("Test1.txt").call(); + commits.add(repo.commit().setMessage("commit#2").call()); writeTrashFile("Test.txt", "Hello world!!!"); - git.add().addFilepattern("Test.txt").call(); - commits.add(git.commit().setMessage("commit#3").call()); + repo.add().addFilepattern("Test.txt").call(); + commits.add(repo.commit().setMessage("commit#3").call()); return commits; } } |