BUG-4456: rework leaker integration 51/47451/3
authorRobert Varga <rovarga@cisco.com>
Mon, 24 Oct 2016 16:27:14 +0000 (18:27 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 25 Oct 2016 11:54:21 +0000 (11:54 +0000)
commitf8cf77d783bd1ada1d83a1e6a58237e15c451391
tree298a31468eceaf85b9239bcae43c160f22371510
parentf80cb937cdce794db33e63e0caa4360f485cb8c8
BUG-4456: rework leaker integration

Rather than spreading the use of leaker across three
classes, centralize its use in ExtensionEffectiveStatementImpl
by exposing a protected method which can be overridden.

This is a bit cleaner solution and should end up being more
performant, as other statements do not end up touching
the thread-local variable.

Change-Id: I6f26dca90c0e5a907e98c65aa953f52ef87364e0
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/ExtensionStatementImpl.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/EffectiveStatementBase.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/ExtensionEffectiveStatementImpl.java