Do not use reflection in TransactCommandAggregator 04/86104/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 2 Dec 2019 14:59:39 +0000 (15:59 +0100)
committerStephen Kitt <skitt@redhat.com>
Tue, 3 Dec 2019 17:16:31 +0000 (17:16 +0000)
commit9ad72607d311b7c003611fa0a1cb6d2a15d15ae6
tree7d1ca5fafc0c3b3b9b53c7d06236689cfbd456ef
parenta4d38b7bba375c1c4595c5f3ab7484a31e3d04bf
Do not use reflection in TransactCommandAggregator

We are using a simple dispatch to instantiate a known list of
commands. Rather than using reflection, we wire the internal array
to point directly to constructors, allowing us to invoke them without
reflection -- speeding them up, as access checking is not performed
at all. Also fixes a deprecation warning with Java 11.

Change-Id: I3061c3f1ae3a1a4dcc5a3887915ddca9ae6cf2c1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/TransactCommandAggregator.java