Fix findbugs violations in md-sal - part 1
[controller.git] / opendaylight / md-sal / sal-inmemory-datastore / src / main / java / org / opendaylight / controller / md / sal / dom / store / impl / DOMImmutableDataChangeEvent.java
index 43b1c636e491f678e0550f25b3bef84e46f2206f..e47d5351137732e8e8dd7bb148b5546556f1b1a5 100644 (file)
@@ -133,8 +133,7 @@ public final class DOMImmutableDataChangeEvent implements
         private final Set<YangInstanceIdentifier> removed = new HashSet<>();
 
         private Builder(final DataChangeScope scope) {
-            Preconditions.checkNotNull(scope, "Data change scope should not be null.");
-            this.scope = scope;
+            this.scope = Preconditions.checkNotNull(scope, "Data change scope should not be null.");
         }
 
         public Builder setAfter(final NormalizedNode<?, ?> node) {