* Added default MACAddress() constructor.
It is needed so it can be de-serialized by Kryo.
* Added a missing Javadoc comment for a method.
diff --git a/src/main/java/net/floodlightcontroller/util/MACAddress.java b/src/main/java/net/floodlightcontroller/util/MACAddress.java
index 88dbda2..b77d4cc 100644
--- a/src/main/java/net/floodlightcontroller/util/MACAddress.java
+++ b/src/main/java/net/floodlightcontroller/util/MACAddress.java
@@ -19,6 +19,18 @@
public static final int MAC_ADDRESS_LENGTH = 6;
private byte[] address = new byte[MAC_ADDRESS_LENGTH];
+ /**
+ * Default constructor.
+ */
+ public MACAddress() {
+ this.address = new byte[] { 0, 0, 0, 0, 0, 0};
+ }
+
+ /**
+ * Constructor for a given address stored in a byte array.
+ *
+ * @param address the address stored in a byte array.
+ */
public MACAddress(byte[] address) {
this.address = Arrays.copyOf(address, MAC_ADDRESS_LENGTH);
}