Cosmetics fixes against datastore package
- no functional changes
Change-Id: I220c2df854e748c5a5a888b27d6d79f38523e322
diff --git a/src/main/java/net/onrc/onos/datastore/topology/KVPort.java b/src/main/java/net/onrc/onos/datastore/topology/KVPort.java
index 452bf94..d31026a 100644
--- a/src/main/java/net/onrc/onos/datastore/topology/KVPort.java
+++ b/src/main/java/net/onrc/onos/datastore/topology/KVPort.java
@@ -65,12 +65,12 @@
}
public static long[] getPortPairFromKey(final ByteBuffer keyBuf) {
- long[] pair = new long[2];
if (keyBuf.getChar() != 'S') {
throw new IllegalArgumentException("Invalid Port key:" + keyBuf
+ " "
+ ByteArrayUtil.toHexStringBuffer(keyBuf.array(), ":"));
}
+ long[] pair = new long[2];
pair[0] = keyBuf.getLong();
if (keyBuf.getChar() != 'P') {
throw new IllegalArgumentException("Invalid Port key:" + keyBuf