Remove a search-before-remove on ArrayList 38/29138/1
authorRobert Varga <rovarga@cisco.com>
Mon, 2 Nov 2015 14:21:19 +0000 (15:21 +0100)
committerRobert Varga <rovarga@cisco.com>
Mon, 2 Nov 2015 14:29:05 +0000 (15:29 +0100)
commitf3bd846001579df6c38b4e71be45ffd52c51d58c
treee0fe157a30b76d0f06046fabf77f445dd3c28508
parent1619febd2d96ad1685ae5e009a85c3f471725af0
Remove a search-before-remove on ArrayList

There is no need to make the removal conditional on presence. This
forces two linear searches of the list, instead of just one.

Change-Id: I3d3fb23ac02e95433cc17ccee119dbb1392cef42
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/impl/YangStatementParserListenerImpl.java