summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Marius Venstad <jonmv@users.noreply.github.com>2022-04-26 20:23:12 +0200
committerGitHub <noreply@github.com>2022-04-26 20:23:12 +0200
commitb1b91ef2abcb4e9a99d3791c701652676893d22d (patch)
tree7696e3bed9a356a0eddc593432915f10a9d40da8
parent5715af99c2c5f682adce5da793cfaf75cb844cf3 (diff)
parent91e49d511ea19d59be98f1a2767263bb38da847e (diff)
Merge pull request #22294 from vespa-engine/jonmv/more-supplier-and-deperecation
SuppressWarnings removal
-rw-r--r--yolean/src/main/java/com/yahoo/yolean/concurrent/ConcurrentResourcePool.java1
-rw-r--r--yolean/src/main/java/com/yahoo/yolean/concurrent/ResourcePool.java1
2 files changed, 2 insertions, 0 deletions
diff --git a/yolean/src/main/java/com/yahoo/yolean/concurrent/ConcurrentResourcePool.java b/yolean/src/main/java/com/yahoo/yolean/concurrent/ConcurrentResourcePool.java
index 4bcecb6fd73..bdd059f3e17 100644
--- a/yolean/src/main/java/com/yahoo/yolean/concurrent/ConcurrentResourcePool.java
+++ b/yolean/src/main/java/com/yahoo/yolean/concurrent/ConcurrentResourcePool.java
@@ -20,6 +20,7 @@ public class ConcurrentResourcePool<T> implements Iterable<T> {
/** @deprecated Use {@link ConcurrentResourcePool(Supplier)} instead */
@Deprecated(forRemoval = true, since = "7")
+ @SuppressWarnings("removal")
public ConcurrentResourcePool(ResourceFactory<T> factory) {
this.factory = factory.asSupplier();
}
diff --git a/yolean/src/main/java/com/yahoo/yolean/concurrent/ResourcePool.java b/yolean/src/main/java/com/yahoo/yolean/concurrent/ResourcePool.java
index 6b98129f920..895fa890beb 100644
--- a/yolean/src/main/java/com/yahoo/yolean/concurrent/ResourcePool.java
+++ b/yolean/src/main/java/com/yahoo/yolean/concurrent/ResourcePool.java
@@ -20,6 +20,7 @@ public final class ResourcePool<T> implements Iterable<T> {
/** @deprecated Use {@link ResourcePool( Supplier )} instead */
@Deprecated(forRemoval = true, since = "7")
+ @SuppressWarnings("removal")
public ResourcePool(ResourceFactory<T> factory) {
this(factory.asSupplier());
}