Optimize xsql's use of collections 43/12643/9
authorRobert Varga <rovarga@cisco.com>
Fri, 7 Nov 2014 19:03:32 +0000 (20:03 +0100)
committerRobert Varga <rovarga@cisco.com>
Tue, 25 Nov 2014 15:39:06 +0000 (15:39 +0000)
commit56551e5f8027471688bc10670104b87b83128495
treeb9d7df987dbbb3cbe0b5193641c427647c1f0e9a
parent152891151a8e7c7b0905b4b530837e2538b2ce7b
Optimize xsql's use of collections

Rather than performing class comparisons, we perform a simple
instanceof check... and then rather than adding items one at a time, we
use Collections.addAll().

Change-Id: I2e73788ab6f1625291970ad9b32d3b5d18ee8205
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-dom-xsql/src/main/java/org/opendaylight/controller/md/sal/dom/xsql/XSQLBluePrintRelation.java