Merge "Reorder public/private modifiers as per JLS. (fixes sonar warnings)"
[controller.git] / opendaylight / northbound / statistics / src / main / java / org / opendaylight / controller / statistics / northbound / AllPortStatistics.java
index a1bf1904e4d7fc6dcc0d796a1206a86a50e63b64..2117690d974326eb0be37b93c02f56914b3f05ac 100644 (file)
@@ -15,26 +15,25 @@ 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() {
-       }
-       
-       public AllPortStatistics(List<PortStatistics> portStatistics) {
-               this.portStatistics = portStatistics;
-       }
-
-       public List<PortStatistics> getPortStatistics() {
-               return portStatistics;
-       }
-
-       public void setPortStatistics(List<PortStatistics> portStatistics) {
-               this.portStatistics = portStatistics;
-       }
+        @XmlElement
+        List<PortStatistics> portStatistics;
+        //To satisfy JAXB
+        @SuppressWarnings("unused")
+        private AllPortStatistics() {}
+
+        public AllPortStatistics(List<PortStatistics> portStatistics) {
+                this.portStatistics = portStatistics;
+        }
+
+        public List<PortStatistics> getPortStatistics() {
+                return portStatistics;
+        }
+
+        public void setPortStatistics(List<PortStatistics> portStatistics) {
+                this.portStatistics = portStatistics;
+        }
 
 }