X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fsal%2Fapi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2FNodeConnector.java;h=d58be6771bb034d5cf7738b1eaa5c47caa4ec4ce;hp=46c5a9dae933baee49c47e98476a37dd9222dae5;hb=8916ab2b0c56bc6d5a73888ccb76ac036ccd81a0;hpb=16dc9fd6505fa33552d8cd14c20e92900216ff43 diff --git a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/NodeConnector.java b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/NodeConnector.java index 46c5a9dae9..d58be6771b 100644 --- a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/NodeConnector.java +++ b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/NodeConnector.java @@ -97,42 +97,42 @@ public class NodeConnector implements Serializable { // for Unit Testing coverage static { compatibleType.put(CONTROLLER, - new ImmutablePair(Short.class, null)); + new ImmutablePair, String>(Short.class, null)); compatibleType.put(ALL, - new ImmutablePair(Short.class, null)); + new ImmutablePair, String>(Short.class, null)); compatibleType.put(SWSTACK, - new ImmutablePair(Short.class, null)); + new ImmutablePair, String>(Short.class, null)); compatibleType.put(HWPATH, - new ImmutablePair(Short.class, null)); + new ImmutablePair, String>(Short.class, null)); compatibleType.put(OPENFLOW, - new ImmutablePair(Short.class, + new ImmutablePair, String>(Short.class, Node.NodeIDType.OPENFLOW)); compatibleType.put(PCEP, - new ImmutablePair(Integer.class, + new ImmutablePair, String>(Integer.class, Node.NodeIDType.PCEP)); compatibleType.put(ONEPK, - new ImmutablePair(String.class, + new ImmutablePair, String>(String.class, Node.NodeIDType.ONEPK)); compatibleType.put(OPENFLOW2PCEP, - new ImmutablePair(Short.class, + new ImmutablePair, String>(Short.class, Node.NodeIDType.OPENFLOW)); compatibleType.put(OPENFLOW2ONEPK, - new ImmutablePair(Short.class, + new ImmutablePair, String>(Short.class, Node.NodeIDType.OPENFLOW)); compatibleType.put(PCEP2OPENFLOW, - new ImmutablePair(Integer.class, + new ImmutablePair, String>(Integer.class, Node.NodeIDType.PCEP)); compatibleType.put(PCEP2ONEPK, - new ImmutablePair(Integer.class, + new ImmutablePair, String>(Integer.class, Node.NodeIDType.PCEP)); compatibleType.put(ONEPK2OPENFLOW, - new ImmutablePair(String.class, + new ImmutablePair, String>(String.class, Node.NodeIDType.ONEPK)); compatibleType.put(ONEPK2PCEP, - new ImmutablePair(String.class, + new ImmutablePair, String>(String.class, Node.NodeIDType.ONEPK)); compatibleType.put(PRODUCTION, - new ImmutablePair(String.class, + new ImmutablePair, String>(String.class, Node.NodeIDType.PRODUCTION)); } @@ -186,7 +186,7 @@ public class NodeConnector implements Serializable { if (compatibleType.get(type) != null) { return false; } else { - compatibleType.put(type, new ImmutablePair(compatibleID, + compatibleType.put(type, new ImmutablePair, String>(compatibleID, compatibleNode)); return true; } @@ -340,6 +340,7 @@ public class NodeConnector implements Serializable { * * @param type of node to be set */ + @SuppressWarnings("unused") private void setType(String type) { this.nodeConnectorType = type; if (this.nodeConnectorIDString != null) { @@ -373,6 +374,7 @@ public class NodeConnector implements Serializable { * * @param nodeConnectorIDString String representation for NodeConnectorID */ + @SuppressWarnings("unused") private void setNodeConnectorIDString(String IDStr) { this.nodeConnectorIDString = IDStr; if (this.nodeConnectorType != null) {