fixed sonar issue in R_CloudConfigMigration.java
fixed sonar issue: Remove the declaration of thrown exception
'com.fasterxml.jackson.core.JsonParseException' which is a subclass of
'java.io.IOException: line 81
Issue-ID: SO-906
Change-Id: If18c2b6e0769d95dc56c9dbac5c1d5219e95955c
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
diff --git a/adapters/mso-openstack-adapters/src/main/java/db/migration/R__CloudConfigMigration.java b/adapters/mso-openstack-adapters/src/main/java/db/migration/R__CloudConfigMigration.java
index d638e47..fbafdd0 100644
--- a/adapters/mso-openstack-adapters/src/main/java/db/migration/R__CloudConfigMigration.java
+++ b/adapters/mso-openstack-adapters/src/main/java/db/migration/R__CloudConfigMigration.java
@@ -78,8 +78,8 @@
this.cloudConfig = cloudConfig;
}
- private CloudConfig loadCloudConfig(InputStream stream) throws JsonParseException, JsonMappingException, IOException {
- ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
+ private CloudConfig loadCloudConfig(InputStream stream) throws JsonMappingException, IOException {
+ ObjectMapper mapper = new ObjectMapper(new YAMLFactory());
R__CloudConfigMigration cloudConfigMigration =
mapper.readValue(stream, R__CloudConfigMigration.class);
CloudConfig cloudConfig = cloudConfigMigration.getCloudConfig();