From c0116e2cdcec4e2cfcfa2f1ee287877ea8d4ed00 Mon Sep 17 00:00:00 2001 From: Srinivasan Ramasubramanian <srini@bigswitch.com> Date: Wed, 18 Jan 2012 10:57:38 -0800 Subject: [PATCH] Removed assignment to a variable that's not used. Unit tests would still pass. --- .../net/floodlightcontroller/util/MACAddressTest.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/net/floodlightcontroller/util/MACAddressTest.java b/src/test/java/net/floodlightcontroller/util/MACAddressTest.java index 158f321d0..56696146f 100644 --- a/src/test/java/net/floodlightcontroller/util/MACAddressTest.java +++ b/src/test/java/net/floodlightcontroller/util/MACAddressTest.java @@ -27,27 +27,27 @@ public class MACAddressTest { @Test(expected=NumberFormatException.class) public void testIllegalFormat() { - MACAddress address = MACAddress.valueOf("0T:00:01:02:03:04"); + MACAddress.valueOf("0T:00:01:02:03:04"); } @Test(expected=IllegalArgumentException.class) public void testLongStringFields() { - MACAddress address = MACAddress.valueOf("00:01:02:03:04:05:06"); + MACAddress.valueOf("00:01:02:03:04:05:06"); } @Test(expected=IllegalArgumentException.class) public void testShortStringFields() { - MACAddress address = MACAddress.valueOf("00:01:02:03:04"); + MACAddress.valueOf("00:01:02:03:04"); } @Test(expected=IllegalArgumentException.class) public void testLongByteFields() { - MACAddress address = MACAddress.valueOf(new byte[]{0x01, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06}); + MACAddress.valueOf(new byte[]{0x01, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06}); } @Test(expected=IllegalArgumentException.class) public void testShortByteField() { - MACAddress address = MACAddress.valueOf(new byte[]{0x01, 0x01, 0x02, 0x03, 0x04}); + MACAddress.valueOf(new byte[]{0x01, 0x01, 0x02, 0x03, 0x04}); } // Test data is imported from net.floodlightcontroller.packet.EthernetTest -- GitLab