Moving PortStatistcs port number to Long to aling with Port class
Change-Id: I43ab8760dc3bf192cd2f47511819076fbf1070b6
diff --git a/core/api/src/main/java/org/onosproject/net/device/PortStatistics.java b/core/api/src/main/java/org/onosproject/net/device/PortStatistics.java
index 25fb057..3b9f19a 100644
--- a/core/api/src/main/java/org/onosproject/net/device/PortStatistics.java
+++ b/core/api/src/main/java/org/onosproject/net/device/PortStatistics.java
@@ -15,6 +15,8 @@
*/
package org.onosproject.net.device;
+import org.onosproject.net.PortNumber;
+
/**
* Statistics of a port.
*/
@@ -24,10 +26,19 @@
* Returns the port number.
*
* @return port number
+ * @deprecated ONOS 1.12 Magpie please use portNumber()
*/
+ @Deprecated
int port();
/**
+ * Returns the port number.
+ *
+ * @return port number
+ */
+ PortNumber portNumber();
+
+ /**
* Returns the number of packets received.
*
* @return the number of packets received