You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ra...@apache.org on 2020/03/05 11:58:19 UTC

[openwhisk] branch master updated: Fix deprecated override warning in ResourceLeakDetector. (#4849)

This is an automated email from the ASF dual-hosted git repository.

rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk.git


The following commit(s) were added to refs/heads/master by this push:
     new f061112  Fix deprecated override warning in ResourceLeakDetector. (#4849)
f061112 is described below

commit f061112347e401b063df66f8e12b26a2fda4e740
Author: rodric rabbah <ro...@gmail.com>
AuthorDate: Thu Mar 5 06:58:09 2020 -0500

    Fix deprecated override warning in ResourceLeakDetector. (#4849)
---
 .../openwhisk/core/database/cosmosdb/RecordingLeakDetectorFactory.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/src/test/scala/org/apache/openwhisk/core/database/cosmosdb/RecordingLeakDetectorFactory.java b/tests/src/test/scala/org/apache/openwhisk/core/database/cosmosdb/RecordingLeakDetectorFactory.java
index 0a450dc..954b547 100644
--- a/tests/src/test/scala/org/apache/openwhisk/core/database/cosmosdb/RecordingLeakDetectorFactory.java
+++ b/tests/src/test/scala/org/apache/openwhisk/core/database/cosmosdb/RecordingLeakDetectorFactory.java
@@ -24,6 +24,7 @@ import org.apache.openwhisk.common.Counter;
 public class RecordingLeakDetectorFactory extends ResourceLeakDetectorFactory {
     static final Counter counter = new Counter();
     @Override
+    @SuppressWarnings("deprecation")
     public <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource, int samplingInterval, long maxActive) {
         return new RecordingLeakDetector<T>(counter, resource, samplingInterval);
     }