Use Iterables.filter() instead of FluentIterable 13/75913/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 10 Sep 2018 08:36:12 +0000 (10:36 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 10 Sep 2018 09:20:28 +0000 (09:20 +0000)
commitdf6ca67a2b37b06a388c8e4fa360eaf0e3e03e9e
tree11e703b92f9b621aff2047e5ed3ef33cf35c7cfb
parent6bf9f0d2342064bc821b1a9823e817b03aa1962e
Use Iterables.filter() instead of FluentIterable

This removes allocation of one instance of FluentIterable, reducing
the amount of garbage we produce.

Change-Id: I93953f1263426f7fff20e579e56f82506fb423d4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit ca61467e9c4e802584a1475da15c01cc5ea8e83a)
yang/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/DataSchemaContextNode.java