Add missing override methods to avoid calling default methods creating
unnecessary objects.
@@ -171,11 +171,21 @@ public class DefaultPooledObject<T> implements PooledObject<T> {
return elapsed >= 0 ? elapsed : 0;
}
+ @Override
+ public Instant getLastBorrowInstant() {
+ return lastBorrowInstant;
+ }
+
@Override
public long getLastBorrowTime() {
return lastBorrowInstant.toEpochMilli();
}
+ @Override
+ public Instant getLastReturnInstant() {
+ return lastReturnInstant;
+ }
+
@Override
public long getLastReturnTime() {
return lastReturnInstant.toEpochMilli();
