fixed sonar issue in ZNodeName.java 57/75657/1
authorSandeep J <sandeejh@in.ibm.com>
Fri, 11 Jan 2019 05:40:25 +0000 (11:10 +0530)
committerSandeep J <sandeejh@in.ibm.com>
Fri, 11 Jan 2019 05:41:24 +0000 (11:11 +0530)
fixed sonar issue

Issue-ID: MUSIC-182
Change-Id: I5079c24e9f9342e2e6634e066c51c8eb0a03207b
Signed-off-by: Sandeep J <sandeejh@in.ibm.com>
src/main/java/org/onap/music/lockingservice/ZNodeName.java

index 0c190f1..f4971e1 100644 (file)
@@ -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
@@ -59,7 +61,7 @@ class ZNodeName implements Comparable<ZNodeName> {
 
     @Override
     public String toString() {
-        return name.toString();
+        return name;
     }
 
     @Override