Cleaup Statistics northbound and add exmaples
[controller.git] / opendaylight / northbound / statistics / src / main / java / org / opendaylight / controller / statistics / northbound / AllPortStatistics.java
index e377de2b8836a10c1089eddb098533e2bf95820b..2117690d974326eb0be37b93c02f56914b3f05ac 100644 (file)
@@ -15,15 +15,14 @@ import javax.xml.bind.annotation.XmlAccessorType;
 import javax.xml.bind.annotation.XmlElement;
 import javax.xml.bind.annotation.XmlRootElement;
 
-@XmlRootElement
+@XmlRootElement(name = "list")
 @XmlAccessorType(XmlAccessType.NONE)
-
 public class AllPortStatistics {
         @XmlElement
         List<PortStatistics> portStatistics;
         //To satisfy JAXB
-        private AllPortStatistics() {
-        }
+        @SuppressWarnings("unused")
+        private AllPortStatistics() {}
 
         public AllPortStatistics(List<PortStatistics> portStatistics) {
                 this.portStatistics = portStatistics;