Remove statement filter caches from AbstractEffectiveModule 13/90913/3
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 3 Jul 2020 09:03:21 +0000 (11:03 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 3 Jul 2020 09:19:46 +0000 (11:19 +0200)
commite35ad2326fb90c1d2876f1bb102a382fcef85e04
treed7688fcc306ce9b5792f2caf8d540c46f6045c8c
parentd49c930146025f926dd6ac03efbb1c029c0043d0
Remove statement filter caches from AbstractEffectiveModule

Majority of collections kept by AbstractEffectiveModule are simple
filters on effective substatements. Use Collections2.filter()
instead of fully instantiating them.

Since we are dealing with generic Collections, this is also flushing
out a bad use of equality in a test.

JIRA: YANGTOOLS-1065
Change-Id: If6e8689fdd6638aaddfd45c4846086c03d91032e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/AbstractEffectiveModule.java
yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/parser/stmt/rfc7950/IdentityrefStatementTest.java