diff options
author | 2019-01-03 22:12:43 +0530 | |
---|---|---|
committer | 2019-01-03 22:40:23 +0000 | |
commit | 40a702bf21b8cc1582041d9b4622bc9b13b72761 (patch) | |
tree | a32604dd1cc14efd39494690c3ead74f56ae51ca /appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main | |
parent | 3f7df6a33f5d08a8488a8a395de96d16787b1c1c (diff) |
Fixed sonar issue in Utils.java
Change-Id: I5edf48443c10f08200b0ea376194a9a8fc6dc29a
Issue-ID: APPC-1302
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
Diffstat (limited to 'appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main')
-rw-r--r-- | appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/impl/Utils.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/impl/Utils.java b/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/impl/Utils.java index 169b2c13d..0e30d07cb 100644 --- a/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/impl/Utils.java +++ b/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/impl/Utils.java @@ -6,6 +6,7 @@ * ================================================================================ * Copyright (C) 2017 Amdocs * ============================================================================= + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -75,13 +76,7 @@ public class Utils { byte[] signature = instance.sign(); outStr = Base64.encode(signature); String tmp = new String(outStr); - } catch (InvalidKeyException e) { - logger.error(e.getMessage()); - } catch (IOException e) { - logger.error(e.getMessage()); - } catch (SignatureException e) { - logger.error(e.getMessage()); - } catch (NoSuchAlgorithmException e) { + } catch (InvalidKeyException | IOException | SignatureException | NoSuchAlgorithmException e) { logger.error(e.getMessage()); } return new String(outStr); |