aboutsummaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java b/framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java
index 1f51ff38..019ce5c6 100644
--- a/framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java
+++ b/framework/src/main/java/org/onap/cli/fw/output/print/OnapCommandPrint.java
@@ -263,9 +263,7 @@ public class OnapCommandPrint {
public String printYaml() throws OnapCommandOutputPrintingFailed {
try {
return new YAMLMapper().writeValueAsString(new ObjectMapper().readTree(this.printJson()));
- } catch (JsonProcessingException e) {
- throw new OnapCommandOutputPrintingFailed(e); // NOSONAR
- } catch (IOException e) {
+ } catch (IOException e) {
throw new OnapCommandOutputPrintingFailed(e); // NOSONAR
}
}