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

@@ -146,7 +146,7 @@
<configuration>
<signature>
<groupId>org.codehaus.mojo.signature</groupId>
<artifactId>java16</artifactId>
<artifactId>java17</artifactId>
<version>1.0</version>
</signature>
</configuration>
@@ -424,7 +424,7 @@
<shiro.version>1.2.5</shiro.version>
<!-- repostitory libraries -->
<jgit.version>3.7.1.201504261725-r-scm1</jgit.version>
<jgit.version>4.4.0.201606070830-r-scm1</jgit.version>
<svnkit.version>1.8.5-scm2</svnkit.version>
<!-- util libraries -->
@@ -432,7 +432,7 @@
<quartz.version>2.2.3</quartz.version>
<!-- build properties -->
<project.build.javaLevel>1.6</project.build.javaLevel>
<project.build.javaLevel>1.7</project.build.javaLevel>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<netbeans.hint.license>SCM-BSD</netbeans.hint.license>
<jdk.classifier />

View File

@@ -264,7 +264,7 @@ public final class GitUtil
{
if (formatter != null)
{
formatter.release();
formatter.close();
}
}
@@ -278,7 +278,7 @@ public final class GitUtil
{
if (walk != null)
{
walk.release();
walk.close();
}
}
@@ -292,7 +292,7 @@ public final class GitUtil
{
if (walk != null)
{
walk.release();
walk.close();;
}
}

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;
}
/**