Cleanup AbstractValueNodeModificationStrategy 23/80023/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 30 Jan 2019 13:31:16 +0000 (14:31 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 30 Jan 2019 15:08:31 +0000 (16:08 +0100)
commit59227494c2ba2ff1543874b32e69cd5f44d9d51c
tree62309347ba6bd24a4d51783894a746ecb5d25482
parent37fe9edc082b151bc100537cfa567ba5998d453b
Cleanup AbstractValueNodeModificationStrategy

The implementation did not log offending values and reused
verifyStructure() to perform validation, making analysis difficult.

Refactor the value check so that it is in a private method invoked
from the three codepaths which need to perform it, making code flow
clearer.

Change-Id: I315899982c0f304e0459d5ad33a19e56af0d2355
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/AbstractValueNodeModificationStrategy.java