diff --git a/ebean-datasource/pom.xml b/ebean-datasource/pom.xml
index 9958cf4..5960537 100644
--- a/ebean-datasource/pom.xml
+++ b/ebean-datasource/pom.xml
@@ -29,7 +29,7 @@
io.ebean
ebean-test-containers
- 7.3
+ 7.6
test
@@ -50,14 +50,14 @@
ch.qos.logback
logback-classic
- 1.4.12
+ 1.5.17
test
org.slf4j
slf4j-jdk-platform-logging
- 2.0.9
+ 2.0.17
test
diff --git a/ebean-datasource/src/main/java/io/ebean/datasource/pool/ExtendedPreparedStatement.java b/ebean-datasource/src/main/java/io/ebean/datasource/pool/ExtendedPreparedStatement.java
index b5d169c..e369edf 100644
--- a/ebean-datasource/src/main/java/io/ebean/datasource/pool/ExtendedPreparedStatement.java
+++ b/ebean-datasource/src/main/java/io/ebean/datasource/pool/ExtendedPreparedStatement.java
@@ -27,16 +27,14 @@
*/
final class ExtendedPreparedStatement extends ExtendedStatement implements PreparedStatement {
- private final String sql;
private final String cacheKey;
private boolean closed;
/**
* Create a wrapped PreparedStatement that can be cached.
*/
- ExtendedPreparedStatement(PooledConnection pooledConnection, PreparedStatement pstmt, String sql, String cacheKey) {
+ ExtendedPreparedStatement(PooledConnection pooledConnection, PreparedStatement pstmt, String cacheKey) {
super(pooledConnection, pstmt);
- this.sql = sql;
this.cacheKey = cacheKey;
}
diff --git a/ebean-datasource/src/main/java/io/ebean/datasource/pool/FreeConnectionBuffer.java b/ebean-datasource/src/main/java/io/ebean/datasource/pool/FreeConnectionBuffer.java
index a78ee39..73ba836 100644
--- a/ebean-datasource/src/main/java/io/ebean/datasource/pool/FreeConnectionBuffer.java
+++ b/ebean-datasource/src/main/java/io/ebean/datasource/pool/FreeConnectionBuffer.java
@@ -15,9 +15,6 @@ final class FreeConnectionBuffer {
*/
private final LinkedList freeBuffer = new LinkedList<>();
- FreeConnectionBuffer() {
- }
-
/**
* Return the number of entries in the buffer.
*/
diff --git a/ebean-datasource/src/main/java/io/ebean/datasource/pool/PooledConnection.java b/ebean-datasource/src/main/java/io/ebean/datasource/pool/PooledConnection.java
index 88ad9cc..32c6c14 100644
--- a/ebean-datasource/src/main/java/io/ebean/datasource/pool/PooledConnection.java
+++ b/ebean-datasource/src/main/java/io/ebean/datasource/pool/PooledConnection.java
@@ -2,7 +2,6 @@
import java.sql.*;
import java.util.ArrayList;
-import java.util.Arrays;
import java.util.Map;
import java.util.concurrent.locks.ReentrantLock;
@@ -373,7 +372,7 @@ private PreparedStatement prepareStatement(String sql, boolean useFlag, int flag
} else {
actualPstmt = connection.prepareStatement(sql);
}
- return new ExtendedPreparedStatement(this, actualPstmt, sql, cacheKey);
+ return new ExtendedPreparedStatement(this, actualPstmt, cacheKey);
} catch (SQLException ex) {
markWithError(ex);
throw ex;
diff --git a/ebean-datasource/src/main/java/io/ebean/datasource/pool/PstmtCache.java b/ebean-datasource/src/main/java/io/ebean/datasource/pool/PstmtCache.java
index fa13fad..e232a06 100644
--- a/ebean-datasource/src/main/java/io/ebean/datasource/pool/PstmtCache.java
+++ b/ebean-datasource/src/main/java/io/ebean/datasource/pool/PstmtCache.java
@@ -9,7 +9,7 @@
*/
final class PstmtCache extends LinkedHashMap {
- static final long serialVersionUID = -3096406924865550697L;
+ private static final long serialVersionUID = -3096406924865550697L;
private final int maxSize;
private long removeCount;