BUG-731: do not do String.toString()
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / main / java / org / opendaylight / controller / sal / streams / listeners / ListenerAdapter.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;
@@ -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);