fixed sonar issue in R_CloudConfigMigration.java 31/62931/1
authorSandeep J <sandeejh@in.ibm.com>
Sun, 26 Aug 2018 19:57:57 +0000 (01:27 +0530)
committerSandeep J <sandeejh@in.ibm.com>
Sun, 26 Aug 2018 19:58:05 +0000 (01:28 +0530)
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>
adapters/mso-openstack-adapters/src/main/java/db/migration/R__CloudConfigMigration.java

index d638e47..fbafdd0 100644 (file)
@@ -78,8 +78,8 @@ public class R__CloudConfigMigration implements JdbcMigration , MigrationInfoPro
         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();