From fd8cb97d1e0ade1f0a21f3a90e6d9d91562d3788 Mon Sep 17 00:00:00 2001 From: "Determe, Sebastien (sd378r)" Date: Fri, 17 Nov 2017 17:01:33 +0100 Subject: Fix sonar issue Attempt to remove the Blocker sonar issue Change-Id: I9ce4eea668579acbc19e9fc0e64f82688322dd49 Issue-ID: CLAMP-74 Signed-off-by: Determe, Sebastien (sd378r) --- .../java/org/onap/clamp/clds/service/CldsUser.java | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main/java/org/onap/clamp/clds/service/CldsUser.java b/src/main/java/org/onap/clamp/clds/service/CldsUser.java index dc3f7d512..3dfeaebdd 100644 --- a/src/main/java/org/onap/clamp/clds/service/CldsUser.java +++ b/src/main/java/org/onap/clamp/clds/service/CldsUser.java @@ -25,6 +25,9 @@ package org.onap.clamp.clds.service; import java.util.Arrays; +/** + * The class represents the CldsUser that can be extracted from cldsusers.json. + */ public class CldsUser { private String user; @@ -32,6 +35,8 @@ public class CldsUser { private SecureServicePermission[] permissions; /** + * Returns the user. + * * @return the user */ public String getUser() { @@ -39,6 +44,8 @@ public class CldsUser { } /** + * Sets the user. + * * @param user * the user to set */ @@ -47,6 +54,8 @@ public class CldsUser { } /** + * Returns the password. + * * @return the password */ public String getPassword() { @@ -54,6 +63,8 @@ public class CldsUser { } /** + * Sets the password. + * * @param password * the password to set */ @@ -62,6 +73,8 @@ public class CldsUser { } /** + * Returns the permissions. + * * @return the permissions */ public SecureServicePermission[] getPermissions() { @@ -69,12 +82,13 @@ public class CldsUser { } public String[] getPermissionsString() { - //NOSONAR - return Arrays.stream(getPermissions()).map(SecureServicePermission::getKey).toArray(String[]::new); + return Arrays.stream(getPermissions()).map(SecureServicePermission::getKey).toArray(String[]::new);// NOSONAR } /** - * @param permissions + * Sets the permissions. + * + * @param permissionsArray * the permissions to set */ public void setPermissions(SecureServicePermission[] permissionsArray) { -- cgit 1.2.3-korg