Clarify the correctness of Optional.get() 91/19691/3
authorRobert Varga <rovarga@cisco.com>
Wed, 6 May 2015 09:37:58 +0000 (11:37 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 13 May 2015 09:27:22 +0000 (09:27 +0000)
commitc49971ebea9f449efb529ae54cd9b8f8a996d111
treedd512ffc00db9054e56f8e4edf669956ae4cf09b
parentb18ea8d1646806849f0f1ffbba333a04b9ce93f8
Clarify the correctness of Optional.get()

The check of Optional.isPresent() exists in all codepaths, but it is not
immediately obvious. Make it more explicit.

Change-Id: I73b6931299ee8cd8e40d0331acc6d6e753db8612
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/AbstractNodeContainerModificationStrategy.java