Clean up ContextReferenceExtractor a bit 55/103355/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 24 Nov 2022 15:42:50 +0000 (16:42 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 24 Nov 2022 17:21:12 +0000 (18:21 +0100)
commit99f0a182d34a1e0fa63eea129b0e79c4886850fe
tree2e9b9f1ad1db8132a1d87b5e5e0b39381295769c
parentf201f98ec3e509663387228d52062bd8fa544e0d
Clean up ContextReferenceExtractor a bit

Both implementations are operating on MethodHandles, which brings
Throwable into the picture. Move the common try/catch block into
the abstract class, reducing code duplication a bit.

Change-Id: I549ab704b6c1d1f3c0d9e4a1ac66b5dd9ecedaf7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-adapter/src/main/java/org/opendaylight/mdsal/binding/dom/adapter/ContextReferenceExtractor.java