Remove unnecessary @SuppressWarnings 43/28743/2
authorGary Wu <Gary.Wu1@huawei.com>
Fri, 23 Oct 2015 16:44:06 +0000 (09:44 -0700)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 23 Oct 2015 18:22:02 +0000 (18:22 +0000)
Change-Id: I2b59e7f29a15298c1135c12b6bd9699205706600
Signed-off-by: Gary Wu <Gary.Wu1@huawei.com>
opendaylight/commons/filter-valve/src/main/java/org/opendaylight/controller/filtervalve/cors/FilterValve.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DataTreeChangeListenerActorTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DataTreeChangeListenerProxyTest.java

index 54d8be1..814583f 100644 (file)
@@ -61,7 +61,6 @@ public class FilterValve extends ValveBase {
      * @param fileName path to xml file containing valve configuration
      * @throws Exception
      */
-    @SuppressWarnings("UnusedDeclaration")
     public void setConfigurationFile(String fileName) throws Exception {
         File configurationFile = new File(fileName);
         if (configurationFile.exists() == false || configurationFile.canRead() == false) {
index 37a6197..73d520d 100644 (file)
@@ -24,7 +24,6 @@ import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate;
 
 public class DataTreeChangeListenerActorTest extends AbstractActorTest {
 
-    @SuppressWarnings({ "rawtypes", "unchecked" })
     @Test
     public void testDataChangedWhenNotificationsAreEnabled(){
         new JavaTestKit(getSystem()) {{
@@ -46,7 +45,6 @@ public class DataTreeChangeListenerActorTest extends AbstractActorTest {
         }};
     }
 
-    @SuppressWarnings({ "rawtypes", "unchecked" })
     @Test
     public void testDataChangedWhenNotificationsAreDisabled(){
         new JavaTestKit(getSystem()) {{
@@ -72,7 +70,6 @@ public class DataTreeChangeListenerActorTest extends AbstractActorTest {
         }};
     }
 
-    @SuppressWarnings({ "rawtypes", "unchecked" })
     @Test
     public void testDataChangedWithNoSender(){
         new JavaTestKit(getSystem()) {{
@@ -103,7 +100,6 @@ public class DataTreeChangeListenerActorTest extends AbstractActorTest {
         }};
     }
 
-    @SuppressWarnings({ "rawtypes", "unchecked" })
     @Test
     public void testDataChangedWithListenerRuntimeEx(){
         new JavaTestKit(getSystem()) {{
index b7717cb..eed2a13 100644 (file)
@@ -46,7 +46,6 @@ import scala.concurrent.Future;
 import scala.concurrent.duration.FiniteDuration;
 
 public class DataTreeChangeListenerProxyTest extends AbstractActorTest {
-    @SuppressWarnings("unchecked")
     private final DOMDataTreeChangeListener mockListener = mock(DOMDataTreeChangeListener.class);
 
     @Test(timeout=10000)

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.