From e61e52844df146c0ad11071e106e8e5a216bf6bf Mon Sep 17 00:00:00 2001 From: Sandeep J Date: Mon, 27 Aug 2018 01:27:57 +0530 Subject: 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 --- .../src/main/java/db/migration/R__CloudConfigMigration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'adapters') 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 d638e47e8c..fbafdd052e 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 @@ 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(); -- cgit 1.2.3-korg