Do not use Collections2 58/114858/3
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 7 Jan 2025 17:19:15 +0000 (18:19 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 8 Jan 2025 12:57:12 +0000 (13:57 +0100)
commit8bef597aa265372467b04dfbd8ed8355afb56f08
treec439b528843cb93415015a3b767ee0dc1711233e
parent2d2db279add225ede9a11194441dcd470db51ba9
Do not use Collections2

Building an ImmutableRangeSet through copyOf() offers to advantages over
using an explicit Builder -- it literally is the same thing.

Ditch Collections2.transform() in favor of a simple loop of
Builder.add() calls, resulting in more performant code.

Change-Id: I700b4d6d3082fed6413d8762085d6971285bdb66
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/MutableUnsignedLongSet.java