X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fnorthbound%2Fstatistics%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fstatistics%2Fnorthbound%2FAllPortStatistics.java;h=2117690d974326eb0be37b93c02f56914b3f05ac;hb=e383b2e0b9072b7b5b3e3903b8a42ab3917b7f63;hp=a1bf1904e4d7fc6dcc0d796a1206a86a50e63b64;hpb=e2f7aaa41e482815ca1d4495eb85c8653cd903ab;p=controller.git diff --git a/opendaylight/northbound/statistics/src/main/java/org/opendaylight/controller/statistics/northbound/AllPortStatistics.java b/opendaylight/northbound/statistics/src/main/java/org/opendaylight/controller/statistics/northbound/AllPortStatistics.java index a1bf1904e4..2117690d97 100644 --- a/opendaylight/northbound/statistics/src/main/java/org/opendaylight/controller/statistics/northbound/AllPortStatistics.java +++ b/opendaylight/northbound/statistics/src/main/java/org/opendaylight/controller/statistics/northbound/AllPortStatistics.java @@ -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; - //To satisfy JAXB - private AllPortStatistics() { - } - - public AllPortStatistics(List portStatistics) { - this.portStatistics = portStatistics; - } - - public List getPortStatistics() { - return portStatistics; - } - - public void setPortStatistics(List portStatistics) { - this.portStatistics = portStatistics; - } + @XmlElement + List portStatistics; + //To satisfy JAXB + @SuppressWarnings("unused") + private AllPortStatistics() {} + + public AllPortStatistics(List portStatistics) { + this.portStatistics = portStatistics; + } + + public List getPortStatistics() { + return portStatistics; + } + + public void setPortStatistics(List portStatistics) { + this.portStatistics = portStatistics; + } }