Fix checkstyle whitespace issues - WHITESPACE ONLY
Change-Id: Ic205c1afd639c6008d61d9de95cb764eeb6238ca
diff --git a/src/main/java/net/onrc/onos/core/topology/SwitchEvent.java b/src/main/java/net/onrc/onos/core/topology/SwitchEvent.java
index b36eba2..7ed65d8 100644
--- a/src/main/java/net/onrc/onos/core/topology/SwitchEvent.java
+++ b/src/main/java/net/onrc/onos/core/topology/SwitchEvent.java
@@ -4,9 +4,8 @@
/**
* Self-contained Switch Object
- *
+ * <p/>
* TODO: We probably want common base class/interface for Self-Contained Event Object
- *
*/
public class SwitchEvent {
protected final Long dpid;
@@ -16,36 +15,36 @@
*/
@Deprecated
public SwitchEvent() {
- dpid = null;
+ dpid = null;
}
public SwitchEvent(Long dpid) {
- this.dpid = dpid;
+ this.dpid = dpid;
}
public Long getDpid() {
- return dpid;
+ return dpid;
}
@Override
public String toString() {
- return "[SwitchEvent 0x" + Long.toHexString(dpid) + "]";
+ return "[SwitchEvent 0x" + Long.toHexString(dpid) + "]";
}
public static final int SWITCHID_BYTES = 2 + 8;
public static ByteBuffer getSwitchID(Long dpid) {
- if (dpid == null) {
- throw new IllegalArgumentException("dpid cannot be null");
- }
- return (ByteBuffer) ByteBuffer.allocate(SwitchEvent.SWITCHID_BYTES).putChar('S').putLong(dpid).flip();
+ if (dpid == null) {
+ throw new IllegalArgumentException("dpid cannot be null");
+ }
+ return (ByteBuffer) ByteBuffer.allocate(SwitchEvent.SWITCHID_BYTES).putChar('S').putLong(dpid).flip();
}
public byte[] getID() {
- return getSwitchID(dpid).array();
+ return getSwitchID(dpid).array();
}
public ByteBuffer getIDasByteBuffer() {
- return getSwitchID(dpid);
+ return getSwitchID(dpid);
}
}