Code Review
/
netconf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Remove redundant code constructs
[netconf.git]
/
netconf
/
sal-netconf-connector
/
src
/
main
/
java
/
org
/
opendaylight
/
netconf
/
sal
/
connect
/
netconf
/
util
/
NodeContainerProxy.java
diff --git
a/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/util/NodeContainerProxy.java
b/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/util/NodeContainerProxy.java
index 2a0830658dc8d324eb04fd868ef51f744516f425..da65e5595934cc2655da5532c760a314e5371f45 100644
(file)
--- a/
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/util/NodeContainerProxy.java
+++ b/
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/util/NodeContainerProxy.java
@@
-7,7
+7,6
@@
*/
package org.opendaylight.netconf.sal.connect.netconf.util;
*/
package org.opendaylight.netconf.sal.connect.netconf.util;
-import com.google.common.base.Function;
import com.google.common.base.Preconditions;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import com.google.common.base.Preconditions;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
@@
-58,7
+57,7
@@
public final class NodeContainerProxy implements ContainerSchemaNode {
}
private static Map<QName, DataSchemaNode> asMap(final Collection<DataSchemaNode> childNodes) {
}
private static Map<QName, DataSchemaNode> asMap(final Collection<DataSchemaNode> childNodes) {
- return Maps.uniqueIndex(childNodes,
(Function<DataSchemaNode, QName>)
DataSchemaNode::getQName);
+ return Maps.uniqueIndex(childNodes, DataSchemaNode::getQName);
}
@Override
}
@Override