Remove Collection2.filter() from EffectieStatementBase 64/85964/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 08:31:49 +0000 (09:31 +0100)
commit3c0a8648375738abf50bc93cce5537af85cdec74
tree8e7f34a6ac9ccb8618c3ebf41c70a397ddced435
parent96d12ee2688b296760c29597d44140a34ca762cf
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>
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/EffectiveStatementBase.java