Use checkState() in ModuleInfoBackedContext 10/84410/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 23 Jul 2019 12:03:43 +0000 (14:03 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 13 Sep 2019 15:49:30 +0000 (17:49 +0200)
commit4c4ade4f4ff6e94d19d16cc7086654edb7ab490d
tree5c57f81dcc229827745d050fe4419d2cb89a5ec6
parent1d951a496ce6fed48b5ce6cdbfe861ac2678043a
Use checkState() in ModuleInfoBackedContext

This simplifies the code a bit, by performing a checkState()
instead of explicit if/throw.

Change-Id: I1479c664a0f2c68585648df7ef9f3275aed16329
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit f69090cba3c0a62733963d433e70d9c111a722c8)
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/mdsal/binding/generator/impl/ModuleInfoBackedContext.java