removed code smells in some components 35/108035/1
authorIndrijeet kumar <indriku1@in.ibm.com>
Thu, 21 May 2020 11:45:15 +0000 (17:15 +0530)
committerIndrijeet kumar <indriku1@in.ibm.com>
Thu, 21 May 2020 11:45:21 +0000 (17:15 +0530)
removed code smells in some components

Issue-ID: PORTAL-813
Change-Id: Ib8e1deaddbbd58d41a839c505a3e9875b1046297
Signed-off-by: Indrijeet Kumar <indriku1@in.ibm.com>
ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/UserApiServiceImpl.java
ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/service/support/ServiceLocatorImpl.java
ecomp-sdk/epsdk-core/src/main/java/org/onap/portalsdk/core/web/support/UserUtils.java
ecomp-sdk/epsdk-domain/src/main/java/org/onap/portalsdk/core/domain/support/Container.java
ecomp-sdk/epsdk-domain/src/main/java/org/onap/portalsdk/core/domain/support/DomainVo.java
ecomp-sdk/epsdk-domain/src/main/java/org/onap/portalsdk/core/domain/support/Layout.java
ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/util/CipherUtil.java

index 9c8a883..9ed0f38 100644 (file)
@@ -7,7 +7,7 @@
  * ===================================================================
  *
  * Unless otherwise specified, all software contained herein is licensed
- * under the Apache License, Version 2.0 (the "License");
+ * under the Apache License, Version 2.0. (the "License");
  * you may not use this software except in compliance with the License.
  * You may obtain a copy of the License at
  *
index e348882..3ed6188 100644 (file)
@@ -66,14 +66,6 @@ public class ServiceLocatorImpl implements ServiceLocator {
        public ServiceLocatorImpl() {
        }
 
-       /*
-        * public static ServiceLocator getLocator() { if (locator == null) locator =
-        * new ServiceLocator(); return locator; }
-        * 
-        * public Object clone() throws CloneNotSupportedException { throw new
-        * CloneNotSupportedException(); }
-        */
-
        // Get an LDAP directory context
        public DirContext getDirContext(String initialContextFactory, String providerUrl, String securityPrincipal) {
 
index f31fc65..9538865 100644 (file)
@@ -151,7 +151,6 @@ public class UserUtils {
        }
 
        public static Map getRoles(HttpServletRequest request) {
-               // HttpSession session = request.getSession();
                HttpSession session = AppUtils.getSession(request);
                Map roles = (Map) session.getAttribute(SystemProperties.getProperty(SystemProperties.ROLES_ATTRIBUTE_NAME));
 
index 1c12249..65026a9 100644 (file)
@@ -294,7 +294,6 @@ public class Container {
                                                        ysum += elementRowCol.get(String.valueOf(k) + String.valueOf(j)).computeSize().getHeight();
                                        }
                                        p.y = i * interEleH + ysum + this.getP().getY() + interEleToContainerH;
-                                       // containerCoord.add(c,p);
                                        xsum += c.computeSize().getWidth();
                                        c.setP(p);
 
index d2f41c9..223bb14 100644 (file)
@@ -52,7 +52,6 @@ import org.onap.portalsdk.core.domain.FusionVo;
 public class DomainVo extends FusionVo implements Serializable, Cloneable, Comparable {
 
 //     TODO: Remove after the EELFLoggerImpl
-//     private static final EELFLoggerDelegate logger = EELFLoggerDelegate.getLogger(DomainVo.class);
 
        private static final long serialVersionUID = 1L;
        protected Long id;
@@ -159,7 +158,7 @@ public class DomainVo extends FusionVo implements Serializable, Cloneable, Compa
 
                } catch (Exception e) {
                        
-//     TODO: Remove after the EELFLoggerImpl           logger.error(EELFLoggerDelegate.errorLogger, "copy failed", e);
+//     TODO: Remove after the EELFLoggerImpl   
                        e.printStackTrace();
                }
 
index 33a347d..7b1a5c4 100644 (file)
@@ -627,7 +627,6 @@ public class Layout {
                        double newX = 0.0;
                        if (i + 1 < domainstoUpd.size())
                                newX = domainstoUpd.get(i + 1).getP().getX();
-                       // d.setDomainToLayoutWd(domainstoUpd.get(i+1).getP().getX());
                        else
                                newX = domainstoUpd.get(i).getP().getX() + 38;
 
index 90addfe..5286431 100644 (file)
@@ -263,13 +263,4 @@ public class CipherUtil {
                return CipherUtil.decryptPKC(encryptedText, keyString);
        }
 
-       /*public static void main(String[] args) throws CipherUtilException {
-
-               String testValue = "Welcome123";
-               String encrypted;
-               String decrypted;
-
-
-       }
-*/
 }