Use Optional.isEmpty()
[yangtools.git] / data / yang-data-tree-ri / src / test / java / org / opendaylight / yangtools / yang / data / tree / impl / Bug4454Test.java
index cb01da433fa3ad02210ea227f02d9e2c3c1d0295..a0f15f361bc536e144fd37a0b4047d795906eb84 100644 (file)
@@ -232,7 +232,7 @@ public class Bug4454Test {
 
         DataTreeSnapshot snapshotAfterCommit = inMemoryDataTree.takeSnapshot();
         Optional<NormalizedNode> minMaxListRead = snapshotAfterCommit.readNode(MIN_MAX_LIST_PATH);
-        assertTrue(!minMaxListRead.isPresent());
+        assertFalse(minMaxListRead.isPresent());
 
         modificationTree1.write(MIN_MAX_LIST_PATH, mapNodeFooWithNodes);
         modificationTree1.write(MIN_MAX_LIST_PATH, mapNodeFooWithNodes);