Code Review
/
mdsal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
checkStyleViolationSeverity=error implemented for mdsal-dom-inmemory-datastore
[mdsal.git]
/
dom
/
mdsal-dom-inmemory-datastore
/
src
/
main
/
java
/
org
/
opendaylight
/
mdsal
/
dom
/
store
/
inmemory
/
ShardDataModificationCursor.java
diff --git
a/dom/mdsal-dom-inmemory-datastore/src/main/java/org/opendaylight/mdsal/dom/store/inmemory/ShardDataModificationCursor.java
b/dom/mdsal-dom-inmemory-datastore/src/main/java/org/opendaylight/mdsal/dom/store/inmemory/ShardDataModificationCursor.java
index 86921c141b84601139084828bc37fd5b20d7f475..964c582c1b260d5f7eca0375fe91eb61d67227dd 100644
(file)
--- a/
dom/mdsal-dom-inmemory-datastore/src/main/java/org/opendaylight/mdsal/dom/store/inmemory/ShardDataModificationCursor.java
+++ b/
dom/mdsal-dom-inmemory-datastore/src/main/java/org/opendaylight/mdsal/dom/store/inmemory/ShardDataModificationCursor.java
@@
-20,21
+20,22
@@
class ShardDataModificationCursor implements DOMDataTreeWriteCursor {
private final Deque<WriteCursorStrategy> stack = new ArrayDeque<>();
private final InmemoryDOMDataTreeShardWriteTransaction parent;
private final Deque<WriteCursorStrategy> stack = new ArrayDeque<>();
private final InmemoryDOMDataTreeShardWriteTransaction parent;
- ShardDataModificationCursor(final ShardDataModification root, final InmemoryDOMDataTreeShardWriteTransaction parent) {
+ ShardDataModificationCursor(final ShardDataModification root,
+ final InmemoryDOMDataTreeShardWriteTransaction parent) {
stack.push(root.createOperation(null));
this.parent = Preconditions.checkNotNull(parent);
}
stack.push(root.createOperation(null));
this.parent = Preconditions.checkNotNull(parent);
}
+ private WriteCursorStrategy getCurrent() {
+ return stack.peek();
+ }
+
@Override
public void enter(final PathArgument child) {
WriteCursorStrategy nextOp = getCurrent().enter(child);
stack.push(nextOp);
}
@Override
public void enter(final PathArgument child) {
WriteCursorStrategy nextOp = getCurrent().enter(child);
stack.push(nextOp);
}
- private WriteCursorStrategy getCurrent() {
- return stack.peek();
- }
-
@Override
public void enter(final PathArgument... path) {
for (PathArgument pathArgument : path) {
@Override
public void enter(final PathArgument... path) {
for (PathArgument pathArgument : path) {