Skip to content

Commit 02f3ed8

Browse files
committed
Suppress warnings in forked code
1 parent d64874b commit 02f3ed8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

java/org/apache/tomcat/dbcp/pool2/PooledObject.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
* @param <T> the type of object in the pool.
3232
* @since 2.0
3333
*/
34+
@SuppressWarnings("deprecation")
3435
public interface PooledObject<T> extends Comparable<PooledObject<T>> {
3536

3637
/**
@@ -273,6 +274,7 @@ default Instant getLastReturnInstant() {
273274
* @return the last time this object was used
274275
* @since 2.11.0
275276
*/
277+
@SuppressWarnings("javadoc")
276278
default Instant getLastUsedInstant() {
277279
return Instant.ofEpochMilli(getLastUsedTime());
278280
}

java/org/apache/tomcat/dbcp/pool2/impl/BaseObjectPoolConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* @param <T> Type of element pooled.
3131
* @since 2.0
3232
*/
33+
@SuppressWarnings("deprecation")
3334
public abstract class BaseObjectPoolConfig<T> extends BaseObject implements Cloneable {
3435

3536
/**

0 commit comments

Comments
 (0)