From 4f77be6b3524aefe5763393babc2ffdcb64cf72e Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Fri, 21 Sep 2018 16:11:46 -0400 Subject: new sonar issues in drools-pdp No "@Test" methods - renamed class from XxxTest to XxxMock. Changed functional call syntax. Change-Id: I954c2549705e80c00aed8ecbcb19f386cc8b0310 Issue-ID: POLICY-1137 Signed-off-by: Jim Hahn --- .../src/main/java/org/onap/policy/drools/pooling/state/State.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'feature-pooling-dmaap/src/main/java/org') diff --git a/feature-pooling-dmaap/src/main/java/org/onap/policy/drools/pooling/state/State.java b/feature-pooling-dmaap/src/main/java/org/onap/policy/drools/pooling/state/State.java index edffb3fe..3d939392 100644 --- a/feature-pooling-dmaap/src/main/java/org/onap/policy/drools/pooling/state/State.java +++ b/feature-pooling-dmaap/src/main/java/org/onap/policy/drools/pooling/state/State.java @@ -86,7 +86,7 @@ public abstract class State { * Cancels the timers added by this state. */ public final void cancelTimers() { - timers.forEach(timer -> timer.cancel()); + timers.forEach(CancellableScheduledTask::cancel); } /** -- cgit 1.2.3-korg