PortalResourceInterceptor.java:fixed sonnar issue 95/62895/1
authorArundathi Patil <arundpil@in.ibm.com>
Sat, 25 Aug 2018 08:08:53 +0000 (13:38 +0530)
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>
Sat, 25 Aug 2018 08:09:08 +0000 (13:39 +0530)
Fixed sonar issue, correct this '&' to '&&'

Issue-ID: PORTAL-380
Change-Id: I45d0bbc3cded8482d1dc48d4424e2b59213cf545
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/interceptor/PortalResourceInterceptor.java

index 3160032..ab88dd6 100644 (file)
@@ -3,6 +3,8 @@
  * ONAP Portal
  * ===================================================================
  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
+ * 
+ * Modification Copyright (C) 2018 IBM.
  * ===================================================================
  *
  * Unless otherwise specified, all software contained herein is licensed
@@ -320,7 +322,7 @@ public class PortalResourceInterceptor extends ResourceInterceptor {
        @SuppressWarnings("unused")
        private String decrypted(String encrypted) throws Exception {
                String result = "";
-               if (encrypted != null & encrypted.length() > 0) {
+               if (encrypted != null && encrypted.length() > 0) {
                        try {
                                result = CipherUtil.decryptPKC(encrypted, SystemProperties.getProperty(SystemProperties.Decryption_Key));
                        } catch (Exception e) {
@@ -333,7 +335,7 @@ public class PortalResourceInterceptor extends ResourceInterceptor {
 
        private String encrypted(String decryptedPwd) throws Exception {
                String result = "";
-               if (decryptedPwd != null & decryptedPwd.length() > 0) {
+               if (decryptedPwd != null && decryptedPwd.length() > 0) {
                        try {
                                result = CipherUtil.encryptPKC(decryptedPwd,
                                                SystemProperties.getProperty(SystemProperties.Decryption_Key));