Removed obsolete methods SwitchPort.dpid() and SwitchPort.port()
Instead, always use the equivalent SwitchPort.getDpid() and
SwitchPort.getPortNumber()
No functional changes.
Change-Id: Ia654bb4b1e2c2f7582307f5b0d2c83dd60405525
diff --git a/src/main/java/net/onrc/onos/core/util/SwitchPort.java b/src/main/java/net/onrc/onos/core/util/SwitchPort.java
index cbe4bcb..e296b7b 100644
--- a/src/main/java/net/onrc/onos/core/util/SwitchPort.java
+++ b/src/main/java/net/onrc/onos/core/util/SwitchPort.java
@@ -11,8 +11,8 @@
*/
@JsonSerialize(using = SwitchPortSerializer.class)
public final class SwitchPort {
- private final Dpid dpid; // The DPID of the switch
- private final PortNumber port; // The port of the switch
+ private final Dpid dpid; // The DPID of the switch
+ private final PortNumber port; // The port number on the switch
/**
* Default constructor for Serializer to use.
@@ -62,29 +62,11 @@
*
* @return the DPID value of the Switch-Port.
*/
- public Dpid dpid() {
- return dpid;
- }
-
- /**
- * Get the DPID value of the Switch-Port.
- *
- * @return the DPID value of the Switch-Port.
- */
public Dpid getDpid() {
return dpid;
}
/**
- * Get the port value of the Switch-Port.
- *
- * @return the port value of the Switch-Port.
- */
- public PortNumber port() {
- return port;
- }
-
- /**
* Get the port number of the Switch-Port.
*
* @return the port number of the Switch-Port.