diff options
author | Sandeep J <sandeejh@in.ibm.com> | 2019-01-11 11:31:38 +0530 |
---|---|---|
committer | Sandeep J <sandeejh@in.ibm.com> | 2019-01-11 11:31:49 +0530 |
commit | e9c810dcedf161b80fbff9f917a0d2b4fe98fb7a (patch) | |
tree | ee241126bc1efaf14e0c80871b6bb9afd20adc8a /src | |
parent | 366337b206ee8fbc0da8fcabc44ca2f34ccaeab9 (diff) |
fixed sonar issue in MusicUtil.java
fixed sonar issue
Issue-ID: MUSIC-182
Change-Id: I6f386242860c7645967c698599b9c79976482416
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
Diffstat (limited to 'src')
-rwxr-xr-x | src/main/java/org/onap/music/main/MusicUtil.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/org/onap/music/main/MusicUtil.java b/src/main/java/org/onap/music/main/MusicUtil.java index cfad845d..d2e8591c 100755 --- a/src/main/java/org/onap/music/main/MusicUtil.java +++ b/src/main/java/org/onap/music/main/MusicUtil.java @@ -4,6 +4,8 @@ * =================================================================== * Copyright (c) 2017 AT&T Intellectual Property * =================================================================== + * Modifications Copyright (c) 2018 IBM. + * =================================================================== * 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 @@ -578,7 +580,7 @@ public class MusicUtil { authorization = authorization.replaceFirst("Basic", ""); String decoded = Base64.base64Decode(authorization); StringTokenizer token = new StringTokenizer(decoded, ":"); - authValues.put(MusicUtil.USERID, token.nextToken().toString()); + authValues.put(MusicUtil.USERID, token.nextToken()); authValues.put(MusicUtil.PASSWORD,token.nextToken()); return authValues; |