Reordered the modifier as per java standard 02/83802/2
authorJegadeesh Babu <jegabab1@in.ibm.com>
Sun, 31 Mar 2019 07:48:19 +0000 (13:18 +0530)
committerTakamune Cho <takamune.cho@att.com>
Tue, 2 Apr 2019 19:36:21 +0000 (19:36 +0000)
Sonar fix

Issue-ID: APPC-1563
Change-Id: I9a4b82ca67b5c7f5184457b95c347089de728658
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/src/main/java/org/onap/appc/adapter/chef/chefclient/impl/Utils.java

index 0e30d07..0b1b755 100644 (file)
@@ -6,6 +6,8 @@
  * ================================================================================
  * Copyright (C) 2017 Amdocs
  * =============================================================================
+ * Modifications Copyright (C) 2019 IBM
+ * =============================================================================
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -45,7 +47,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 public class Utils {
-    private final static Logger logger = LoggerFactory.getLogger(Utils.class);
+    private static final Logger logger = LoggerFactory.getLogger(Utils.class);
     private Utils(){}
     
     public static String sha1AndBase64(String inStr) {
@@ -68,7 +70,7 @@ public class Utils {
             PEMParser pemParser = new PEMParser(br);
             JcaPEMKeyConverter converter = new JcaPEMKeyConverter();
             Object object = pemParser.readObject();
-            KeyPair kp =  converter.getKeyPair((PEMKeyPair) object);;
+            KeyPair kp =  converter.getKeyPair((PEMKeyPair) object);
             PrivateKey privateKey = kp.getPrivate();
             Signature instance = Signature.getInstance("RSA");
             instance.initSign(privateKey);