set java version to 1.7 and updated jgit 4.4.0.201606070830-r-scm1

This commit is contained in:
Sebastian Sdorra
2016-07-14 22:09:16 +02:00
parent c08abf8f93
commit f613800970
3 changed files with 8 additions and 17 deletions

View File

@@ -476,19 +476,10 @@ public class GitRepositoryClient extends AbstractRepositoryClient
private RevCommit parseCommit(Ref branch)
throws MissingObjectException, IncorrectObjectTypeException, IOException
{
final RevWalk rw = new RevWalk(repository);
final RevCommit commit;
try
try (RevWalk rw = new RevWalk(repository))
{
commit = rw.parseCommit(branch.getObjectId());
return rw.parseCommit(branch.getObjectId());
}
finally
{
rw.release();
}
return commit;
}
/**