Do not instantiate Integers 70/16970/1
authorRobert Varga <rovarga@cisco.com>
Sun, 22 Mar 2015 22:58:34 +0000 (23:58 +0100)
committerRobert Varga <rovarga@cisco.com>
Sun, 22 Mar 2015 22:58:34 +0000 (23:58 +0100)
commitac30443757c313da60f109bcbb6795d394677d30
tree77790677c6a71ac384bfef57f557c12aee209a1a
parentd8b9ac97eead281c844fc1ba896d04bb3c1c9898
Do not instantiate Integers

Speed up comparison by not instantiating an explicit Integer instace.
Get hold of it once and use it as a constant. It has the further
advantage of using a JVM-wide-shared object (as it happens to fall into
the range of changed integers).

Change-Id: I57fb875a7ffb151e5782b3af844f20fc4e193fc7
Signed-off-by: Robert Varga <rovarga@cisco.com>
mappingservice/neutron/src/main/java/org/opendaylight/lispflowmapping/neutron/LispNeutronSubnetHandler.java