Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Fixed typo in SnapshotBackedWriteTransaction class"
[controller.git]
/
opendaylight
/
netconf
/
netconf-impl
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
netconf
/
impl
/
osgi
/
NetconfMonitoringServiceImpl.java
diff --git
a/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/osgi/NetconfMonitoringServiceImpl.java
b/opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/osgi/NetconfMonitoringServiceImpl.java
index f9b0a128e0b44e566fabc6a33c2ef639fe433a64..81fac5f12f9c7dc9d3bf40922c19723836c036ce 100644
(file)
--- a/
opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/osgi/NetconfMonitoringServiceImpl.java
+++ b/
opendaylight/netconf/netconf-impl/src/main/java/org/opendaylight/controller/netconf/impl/osgi/NetconfMonitoringServiceImpl.java
@@
-51,7
+51,7
@@
public class NetconfMonitoringServiceImpl implements NetconfMonitoringService, S
@Override
public void onSessionUp(NetconfManagementSession session) {
logger.debug("Session {} up", session);
@Override
public void onSessionUp(NetconfManagementSession session) {
logger.debug("Session {} up", session);
- Preconditions.checkState(
sessions.contains(session) == false
, "Session %s was already added", session);
+ Preconditions.checkState(
!sessions.contains(session)
, "Session %s was already added", session);
sessions.add(session);
}
sessions.add(session);
}
@@
-70,7
+70,7
@@
public class NetconfMonitoringServiceImpl implements NetconfMonitoringService, S
@Override
public Schemas getSchemas() {
// capabilities should be split from operations (it will allow to move getSchema operation to monitoring module)
@Override
public Schemas getSchemas() {
// capabilities should be split from operations (it will allow to move getSchema operation to monitoring module)
- try (NetconfOperationServiceSnapshot snapshot = netconfOperationProvider.
get
Snapshot("netconf-monitoring")) {
+ try (NetconfOperationServiceSnapshot snapshot = netconfOperationProvider.
open
Snapshot("netconf-monitoring")) {
return transformSchemas(snapshot.getServices());
} catch (RuntimeException e) {
throw e;
return transformSchemas(snapshot.getServices());
} catch (RuntimeException e) {
throw e;