Add checkstyle rule to prevent empty statements (;) 48/2448/2
authorAlissa Bonas <abonas@redhat.com>
Wed, 6 Nov 2013 16:21:19 +0000 (18:21 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 7 Nov 2013 09:35:22 +0000 (09:35 +0000)
Change-Id: Id8b34fde64988326cf6cab494019f99d2d61cbc5
Signed-off-by: Alissa Bonas <abonas@redhat.com>
opendaylight/commons/checkstyle/src/main/resources/controller/checkstyle.xml
opendaylight/networkconfiguration/neutron/src/main/java/org/opendaylight/controller/networkconfig/neutron/NeutronSubnet.java
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Bandwidth.java

index c810d6523a0832fcb15da4a369e6ec2463c49339..57f169db730806a837d93eb73ffe245b61f0eb25 100644 (file)
@@ -18,6 +18,7 @@
        <module name="UnusedImports"/>\r
        <module name="AvoidStarImport"/>\r
        <module name="UpperEll"/>\r
+       <module name="EmptyStatement"/>\r
     </module>\r
 \r
 </module>\r
index d7919394867b0ef67b43ca7c20498f3a21df6ae7..c6ea9421f9b9d928944ced8e7ceeb7de40a3de6c 100644 (file)
@@ -265,7 +265,6 @@ public class NeutronSubnet {
                 allocationPools = source.splitPool(gatewayIP);\r
             }\r
         } catch (Exception e) {\r
-            ;\r
         }\r
     }\r
 \r
index 5083cf57d759bb0a9f118f484e5b0dde36283604..30f27793dea433b8c07defe6335c709024eb8184 100644 (file)
@@ -52,7 +52,6 @@ public class Bandwidth extends Property {
     private Bandwidth() {
         super(BandwidthPropName);
         this.bandwidthValue = BWUNK;
-        ;
     }
 
     public Bandwidth(long bandwidth) {