BUG-1281: optimize ControllerContext 79/8579/2
authorRobert Varga <rovarga@cisco.com>
Wed, 2 Jul 2014 19:57:11 +0000 (21:57 +0200)
committerRobert Varga <rovarga@cisco.com>
Wed, 2 Jul 2014 20:50:28 +0000 (22:50 +0200)
commit43ee3f6bb0d69d1171cd998616740f37ef435c47
tree269fb4e7dba5f2f855421fad9938984eed9abda4
parente2dd44b4bee20a78a1514044613d1564af841c2c
BUG-1281: optimize ControllerContext

- use a single instanceof of Splitter
- do not instantiate unneeded collections
- static methods should be static
- do not use string concat in LOG.error()
- do not use String.split()

Change-Id: I16d2232ab2f9ee86f64f7abc95d9b7ce073f0c22
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/ControllerContext.java