summaryrefslogtreecommitdiffstats
path: root/models-interactions/model-simulators
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2020-10-02 12:56:47 -0400
committerJim Hahn <jrh3@att.com>2020-10-02 12:59:47 -0400
commitc48e63f81e072c3cdf3f3fe84983285c0b8f1439 (patch)
tree1d4160dce789f5f80df6e1c2ada84af62c8d8155 /models-interactions/model-simulators
parente6c06754e2edd4a5ff108983828a2dbb15739a2e (diff)
Fix eclipse/sonar warnings in models
Addressed the following eclipse/sonar warnings: - unused imports - unchanged type - unreachable "catch" block - reinterrupt Issue-ID: POLICY-2714 Change-Id: I2fe6011ec74b7fab8889050e5c83647ab034ea25 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'models-interactions/model-simulators')
-rw-r--r--models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/CdsSimulator.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/CdsSimulator.java b/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/CdsSimulator.java
index f1785c8ee..3418780bc 100644
--- a/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/CdsSimulator.java
+++ b/models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/CdsSimulator.java
@@ -91,9 +91,8 @@ public class CdsSimulator {
responseObserver.onNext(builder.build());
} catch (InvalidProtocolBufferException e) {
throw new SimulatorRuntimeException("Cannot convert ExecutionServiceOutput output", e);
- } catch (IOException e) {
- throw new SimulatorRuntimeException("Cannot read ExecutionServiceOutput from file", e);
} catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
throw new SimulatorRuntimeException("Execution Interrupted", e);
}
}