Remove Collection2.filter() from EffectieStatementBase 69/85969/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 26 Nov 2019 08:30:26 +0000 (09:30 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 26 Nov 2019 10:27:03 +0000 (11:27 +0100)
commitd352a9158c57eec25df3eea073af6b3ae729733b
tree8770081484ad2e918475fc4406bc99a5e0f27c10
parentfce9b11e87d23b7ddf4d27e442bc472c76ef5cd8
Remove Collection2.filter() from EffectieStatementBase

We use the filtered collection only to iterate in a for loop, hence
it is more efficient to move the filter into the loop itself,
eliminating an intermediate collection.

Change-Id: I0cc944b3cedd0758d713f394f2d3360d44c26e66
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 3c0a8648375738abf50bc93cce5537af85cdec74)
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/EffectiveStatementBase.java