notificationService);
}
- private TwoLevelListChanged createTestData() {
+ private static TwoLevelListChanged createTestData() {
final TwoLevelListChangedBuilder tb = new TwoLevelListChangedBuilder();
tb.setTopLevelList(ImmutableList.of(new TopLevelListBuilder().withKey(new TopLevelListKey("test")).build()));
return tb.build();
BindingReflections.getModuleInfo(TreeComplexUsesAugment.class));
}
- private Top topWithListItem() {
+ private static Top topWithListItem() {
return top(topLevelList(TOP_FOO_KEY, complexUsesAugment(USES_ONE_KEY, USES_TWO_KEY)));
}
assertEquals(TOP_INITIAL_DATA, initialNode.getDataAfter());
}
- private void verifyModification(final DataObjectModification<? extends DataObject> barWrite,
+ private static void verifyModification(final DataObjectModification<? extends DataObject> barWrite,
final PathArgument pathArg, final ModificationType eventType) {
assertEquals(pathArg.getType(), barWrite.getDataType());
assertEquals(eventType,barWrite.getModificationType());
barListener.verify();
}
- private Function<DataTreeModification<Top>, Boolean> topSubtreeModified(final TopLevelList topFoo,
+ private static Function<DataTreeModification<Top>, Boolean> topSubtreeModified(final TopLevelList topFoo,
final TopLevelList topBar) {
return match(ModificationType.SUBTREE_MODIFIED, TOP,
(Function<Top, Boolean>) dataBefore -> Objects.equals(top(topFoo), dataBefore),
}
@SuppressWarnings("checkstyle:IllegalCatch")
- private List<DataTreeListenerInfo> getListenerActorsInfo(Collection<ActorSelection> actors) {
+ private static List<DataTreeListenerInfo> getListenerActorsInfo(Collection<ActorSelection> actors) {
final Timeout timeout = new Timeout(20, TimeUnit.SECONDS);
final List<Future<Object>> futureList = new ArrayList<>(actors.size());
for (ActorSelection actor: actors) {
updater.close();
}
- private Object resolveField(final String name, final Object obj) throws Exception {
+ private static Object resolveField(final String name, final Object obj) throws Exception {
final Field currProps = obj.getClass().getDeclaredField(name);
currProps.setAccessible(true);
return currProps.get(obj);
assertEquals(Optional.absent(), rwTx.read(LogicalDatastoreType.OPERATIONAL, TestModel.TEST_PATH).checkedGet());
}
- private DataContainerChild<?, ?> outerNode(int... ids) {
+ private static DataContainerChild<?, ?> outerNode(int... ids) {
CollectionNodeBuilder<MapEntryNode, MapNode> outer = ImmutableNodes.mapNodeBuilder(TestModel.OUTER_LIST_QNAME);
for (int id : ids) {
outer.addChild(ImmutableNodes.mapEntry(TestModel.OUTER_LIST_QNAME, TestModel.ID_QNAME, id));
return outer.build();
}
- private NormalizedNode<?, ?> testNodeWithOuter(int... ids) {
+ private static NormalizedNode<?, ?> testNodeWithOuter(int... ids) {
return testNodeWithOuter(outerNode(ids));
}
- private NormalizedNode<?, ?> testNodeWithOuter(DataContainerChild<?, ?> outer) {
+ private static NormalizedNode<?, ?> testNodeWithOuter(DataContainerChild<?, ?> outer) {
return ImmutableContainerNodeBuilder.create()
.withNodeIdentifier(new YangInstanceIdentifier.NodeIdentifier(TestModel.TEST_QNAME)).withChild(outer)
.build();