Sonar clean-up: braces for control statements
[netvirt.git] / utils / mdsal-openflow / src / main / java / org / opendaylight / ovsdb / utils / mdsal / openflow / ActionUtils.java
index ebe575b051feade02376fdf607cf2eb1825a1259..88d41a210ad3e3a6720f10265878c54c764d5b53 100644 (file)
@@ -399,10 +399,11 @@ public final class ActionUtils {
         final String HEXES = "0123456789ABCDEF";
         byte[] address = new byte[6];
         String[] macBytes = macAddress.split(":");
-        if (macBytes.length != 6)
+        if (macBytes.length != 6) {
             throw new IllegalArgumentException(
                     "Specified MAC Address must contain 12 hex digits" +
                     " separated pairwise by :'s.");
+        }
         for (int i = 0; i < 6; ++i) {
             address[i] = (byte) ((HEXES.indexOf(macBytes[i].toUpperCase()
                                                         .charAt(0)) << 4) | HEXES.indexOf(macBytes[i].toUpperCase()