Skip to content

Commit f061112

Browse files
authored
Fix deprecated override warning in ResourceLeakDetector. (#4849)
1 parent 05ed4e1 commit f061112

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/src/test/scala/org/apache/openwhisk/core/database/cosmosdb/RecordingLeakDetectorFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
public class RecordingLeakDetectorFactory extends ResourceLeakDetectorFactory {
2525
static final Counter counter = new Counter();
2626
@Override
27+
@SuppressWarnings("deprecation")
2728
public <T> ResourceLeakDetector<T> newResourceLeakDetector(Class<T> resource, int samplingInterval, long maxActive) {
2829
return new RecordingLeakDetector<T>(counter, resource, samplingInterval);
2930
}

0 commit comments

Comments
 (0)