Fix checkstyle whitespace issues - WHITESPACE ONLY
Change-Id: Ic205c1afd639c6008d61d9de95cb764eeb6238ca
diff --git a/src/main/java/net/onrc/onos/core/util/Port.java b/src/main/java/net/onrc/onos/core/util/Port.java
index 722c802..77d983b 100644
--- a/src/main/java/net/onrc/onos/core/util/Port.java
+++ b/src/main/java/net/onrc/onos/core/util/Port.java
@@ -9,63 +9,65 @@
public class Port {
/**
* Special port values.
- *
+ * <p/>
* Those values are taken as-is from the OpenFlow-v1.0.0 specification
* (pp 18-19).
*/
public enum PortValues {
- /* Maximum number of physical switch ports. */
- PORT_MAX ((short)0xff00),
+ /* Maximum number of physical switch ports. */
+ PORT_MAX((short) 0xff00),
- /* Fake output "ports". */
+ /* Fake output "ports". */
- /* Send the packet out the input port. This
- virtual port must be explicitly used
- in order to send back out of the input
- port. */
- PORT_IN_PORT ((short)0xfff8),
+ /* Send the packet out the input port. This
+ virtual port must be explicitly used
+ in order to send back out of the input
+ port. */
+ PORT_IN_PORT((short) 0xfff8),
- /* Perform actions in flow table.
- NB: This can only be the destination
- port for packet-out messages. */
- PORT_TABLE ((short)0xfff9),
+ /* Perform actions in flow table.
+ NB: This can only be the destination
+ port for packet-out messages. */
+ PORT_TABLE((short) 0xfff9),
- /* Process with normal L2/L3 switching. */
- PORT_NORMAL ((short)0xfffa),
+ /* Process with normal L2/L3 switching. */
+ PORT_NORMAL((short) 0xfffa),
- /* All physical ports except input port and
- those disabled by STP. */
- PORT_FLOOD ((short)0xfffb),
+ /* All physical ports except input port and
+ those disabled by STP. */
+ PORT_FLOOD((short) 0xfffb),
- /* All physical ports except input port. */
- PORT_ALL ((short)0xfffc),
+ /* All physical ports except input port. */
+ PORT_ALL((short) 0xfffc),
- /* Send to controller. */
- PORT_CONTROLLER ((short)0xfffd),
+ /* Send to controller. */
+ PORT_CONTROLLER((short) 0xfffd),
- /* Local openflow "port". */
- PORT_LOCAL ((short)0xfffe),
+ /* Local openflow "port". */
+ PORT_LOCAL((short) 0xfffe),
- /* Not associated with a physical port. */
- PORT_NONE ((short)0xffff);
+ /* Not associated with a physical port. */
+ PORT_NONE((short) 0xffff);
- private final short value; // The value
+ private final short value; // The value
- /**
- * Constructor for a given value.
- *
- * @param value the value to use for the initialization.
- */
- private PortValues(short value) {
- this.value = value;
- }
+ /**
+ * Constructor for a given value.
+ *
+ * @param value the value to use for the initialization.
+ */
+ private PortValues(short value) {
+ this.value = value;
+ }
- /**
- * Get the value as a short integer.
- *
- * @return the value as a short integer.
- */
- private short value() { return this.value; }
+ /**
+ * Get the value as a short integer.
+ *
+ * @return the value as a short integer.
+ */
+ private short value() {
+ return this.value;
+ }
}
private short value;
@@ -74,7 +76,7 @@
* Default constructor.
*/
public Port() {
- this.value = 0;
+ this.value = 0;
}
/**
@@ -83,7 +85,7 @@
* @param other the object to copy from.
*/
public Port(Port other) {
- this.value = other.value();
+ this.value = other.value();
}
/**
@@ -92,7 +94,7 @@
* @param value the value to use.
*/
public Port(short value) {
- this.value = value;
+ this.value = value;
}
/**
@@ -101,7 +103,7 @@
* @param value the value to use.
*/
public Port(PortValues value) {
- this.value = value.value();
+ this.value = value.value();
}
/**
@@ -110,7 +112,9 @@
* @return the value of the port.
*/
@JsonProperty("value")
- public short value() { return value; }
+ public short value() {
+ return value;
+ }
/**
* Set the value of the port.
@@ -119,7 +123,7 @@
*/
@JsonProperty("value")
public void setValue(short value) {
- this.value = value;
+ this.value = value;
}
/**
@@ -129,25 +133,25 @@
*/
@Override
public String toString() {
- return Short.toString(this.value);
+ return Short.toString(this.value);
}
-
+
@Override
public boolean equals(Object other) {
- if (!(other instanceof Port)) {
- return false;
- }
+ if (!(other instanceof Port)) {
+ return false;
+ }
- Port otherPort = (Port) other;
+ Port otherPort = (Port) other;
- return value == otherPort.value;
+ return value == otherPort.value;
}
@Override
public int hashCode() {
- int hash = 17;
- hash += 31 * hash + (int)value;
- return hash;
+ int hash = 17;
+ hash += 31 * hash + (int) value;
+ return hash;
}
}