Fixing warnings in the sal sub-project.
[controller.git] / opendaylight / sal / api / src / test / java / org / opendaylight / controller / sal / core / NodeTest.java
index 551769a55790cce97759f5a9258e217b89e71095..0b394bf9ec6354d4822474162907ae3a6e0ef2a8 100644 (file)
@@ -24,6 +24,7 @@ public class NodeTest {
     @Test
     public void testNodeOpenFlowOfWrongType() {
         try {
+            @SuppressWarnings("unused")
             Node of1 = new Node(Node.NodeIDType.OPENFLOW, new String(
                     "0xDEADBEEFCAFE0001L"));
 
@@ -41,6 +42,7 @@ public class NodeTest {
     @Test
     public void testNodeONEPKOfWrongType() {
         try {
+            @SuppressWarnings("unused")
             Node onepk1 = new Node(Node.NodeIDType.ONEPK, new Long(
                     0xDEADBEEFCAFE0001L));
 
@@ -58,6 +60,7 @@ public class NodeTest {
     @Test
     public void testNodePCEPOfWrongType() {
         try {
+            @SuppressWarnings("unused")
             Node pcep1 = new Node(Node.NodeIDType.PCEP, new Long(
                     0xDEADBEEFCAFE0001L));
 
@@ -411,6 +414,7 @@ public class NodeTest {
         // created
         Node.NodeIDType.unRegisterIDType("FOO");
         try {
+            @SuppressWarnings("unused")
             Node n = new Node("FOO", new Integer(0xCAFE));
 
             // If we reach here, something didn't go fine, an