Optimize convertCustomFilterList() 26/102426/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 22 Sep 2022 09:59:16 +0000 (11:59 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 22 Sep 2022 09:59:16 +0000 (11:59 +0200)
commit1e38e767aa387c95bd05e05e15719a5923167c44
tree886a8f800d364b833458b25b4a49027b228e737b
parent1fe6b711a635f9c6b7d17272bdc4b61d62857b30
Optimize convertCustomFilterList()

Rather than creating a temporary collection, use Streams.concat()
to acquire a combined stream. Also collect directly to an ImmutableList,
so that we do not have two objects allocated.

Change-Id: Id9fdaa2f83524cdf0c8cc133f8cab9e1767c94c0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
aaa-filterchain/src/main/java/org/opendaylight/aaa/filterchain/configuration/impl/CustomFilterAdapterConfigurationImpl.java