Modernize DataTreeCandidates.fastCompressNode() 76/112176/2
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 15 Jun 2024 13:07:24 +0000 (15:07 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 17 Jun 2024 08:52:28 +0000 (08:52 +0000)
commit34b6b20de0bff2675c6a0990f023cd9783acad2f
treec3c0638d7260aa5a226625a41ef1ab5eb34d88ae
parentd6bc425f24a58c54c168a4a5d929378b4e3742f1
Modernize DataTreeCandidates.fastCompressNode()

Use a switch expression to ensure exhaustiveness, allowing us to drop
the default case.

Change-Id: I00082c94b8de01353833c5996bccd79a5bf06b17
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
data/yang-data-tree-spi/src/main/java/org/opendaylight/yangtools/yang/data/tree/spi/DataTreeCandidates.java