Clean ControllerContext up 11/51611/4
authorRobert Varga <rovarga@cisco.com>
Fri, 27 Jan 2017 23:54:02 +0000 (00:54 +0100)
committerRobert Varga <rovarga@cisco.com>
Thu, 9 Feb 2017 09:29:15 +0000 (10:29 +0100)
commitbb9f54e2497884361ac4294467e392ae8a2ccfb1
tree3f3c754aa5fa11e8ed9b5bee67eec0cdf6b150ce
parentddd6b9224cbd5de5153710a266f55e548ada03a7
Clean ControllerContext up

ControllerContext is supposed to be an immutable context, which has always
a global instance, which is updated as needed.

Current code mutates the context in an uncoordinated fashion, which means
it can easily end up being inconsistent if a SchemaContext change occurs
while a request is being executed.

Add FIXME markers to issues to be solved in future and clean up various
aspects of the file:
- make sure the URI encoding charset is available
- use lambdas wherever possible
- fix keyword order to match JLS
- trim long lines

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