Clarify the correctness of Optional.get() 75/21175/2
authorRobert Varga <rovarga@cisco.com>
Wed, 6 May 2015 09:37:58 +0000 (11:37 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 27 May 2015 15:16:20 +0000 (15:16 +0000)
commit961e6fce593ab3a24d1d9c878cba3b893dddb731
tree4a0ad72dcfe0e584ed2c00ea0a309963c1f3e7b0
parent1f128ef3bde7664d17e6b0332f8b0a8d8abb11d6
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>
(cherry picked from commit c49971ebea9f449efb529ae54cd9b8f8a996d111)
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/AbstractNodeContainerModificationStrategy.java