BUG-731: do not do String.toString() 28/6228/1
authorRobert Varga <rovarga@cisco.com>
Wed, 16 Apr 2014 09:17:18 +0000 (11:17 +0200)
committerRobert Varga <rovarga@cisco.com>
Wed, 16 Apr 2014 09:17:18 +0000 (11:17 +0200)
Fixes a sonar warning. Also adds missing copyright headers.

Change-Id: If16eebc39e7f0d7e9787529995b666f04d239cdf
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/streams/listeners/ListenerAdapter.java
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/streams/listeners/Notificator.java

index 5fd76de98bb51c4e0b322f6c16f0bd17c5d417d2..f2a0d48e0a18e67f5708da3becc0876ed679ba87 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
 package org.opendaylight.controller.sal.streams.listeners;
 
 import io.netty.channel.Channel;
 package org.opendaylight.controller.sal.streams.listeners;
 
 import io.netty.channel.Channel;
@@ -519,7 +526,7 @@ public class ListenerAdapter implements DataChangeListener {
                        }
                }
 
                        }
                }
 
-               element.setAttribute("xmlns:" + prefix, namespace.toString());
+               element.setAttribute("xmlns:" + prefix, namespace);
                textContent.append(prefix);
                prefixes.put(namespace, prefix);
 
                textContent.append(prefix);
                prefixes.put(namespace, prefix);
 
index 9c8351aa99fdecc737508a7b0487c95f39582495..6f154f8affa66ed57dd6a4f6fa1952f99b31bb59 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
 package org.opendaylight.controller.sal.streams.listeners;
 
 import java.util.Map;
 package org.opendaylight.controller.sal.streams.listeners;
 
 import java.util.Map;
@@ -176,4 +183,4 @@ public class Notificator {
                }
        }
 
                }
        }
 
-}
\ No newline at end of file
+}