summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorThomas Nelson <nelson24@att.com>2019-01-17 20:39:37 +0000
committerGerrit Code Review <gerrit@onap.org>2019-01-17 20:39:37 +0000
commit0ffce002c0c46e0a6d05770eb1f4f806b42faddb (patch)
tree96ad1ffefad928f0090f9c81d150cc3d39080f93 /src/main
parent451956ed7ff249794bb508fc5b5c02819e162f8d (diff)
parente9c810dcedf161b80fbff9f917a0d2b4fe98fb7a (diff)
Merge "fixed sonar issue in MusicUtil.java"
Diffstat (limited to 'src/main')
-rwxr-xr-xsrc/main/java/org/onap/music/main/MusicUtil.java4
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;