Skip to content

Commit

Permalink
Update libs/dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Grotzke committed Nov 24, 2018
1 parent 5a5b292 commit 8c07a6f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import java.io.IOException;
import java.io.Serializable;
import java.util.Arrays;
import java.util.HashSet;
Expand Down Expand Up @@ -198,7 +199,7 @@ static interface Callback<T> {

}

<T> T withSession( final Callback<T> callback ) {
private <T> T withSession(final Callback<T> callback) {
final Session session = _sessionFactory.openSession();
Transaction transaction = null;
try {
Expand All @@ -212,7 +213,7 @@ <T> T withSession( final Callback<T> callback ) {
}
throw new RuntimeException( e );
} finally {
session.close();
try{ session.close(); } catch (Throwable t) { /* ignore */ }
}
}

Expand Down
14 changes: 6 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,14 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<tomcat6-version>6.0.53</tomcat6-version>
<tomcat7-version>7.0.85</tomcat7-version>
<tomcat8-version>8.5.29</tomcat8-version>
<tomcat9-version>9.0.6</tomcat9-version>
<tomcat7-version>7.0.92</tomcat7-version>
<tomcat8-version>8.5.35</tomcat8-version>
<tomcat9-version>9.0.13</tomcat9-version>

<tomcat-version>${tomcat6-version}</tomcat-version>
<slf4j-version>1.7.15</slf4j-version>
<hibernate-core-version>5.0.7.Final</hibernate-core-version>
<couchbasemock-version>1.5.14</couchbasemock-version>
<slf4j-version>1.7.25</slf4j-version>
<hibernate-core-version>5.3.7.Final</hibernate-core-version>
<couchbasemock-version>1.5.19</couchbasemock-version>
</properties>

<dependencyManagement>
Expand All @@ -239,8 +239,6 @@
<version>${slf4j-version}</version>
<scope>test</scope>
</dependency>
<!-- dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j</artifactId>
<version>${slf4j-version}</version> </dependency -->
<!-- Testing -->
<dependency>
<groupId>com.thimbleware.jmemcached</groupId>
Expand Down

0 comments on commit 8c07a6f

Please sign in to comment.