findModule method refactoring
authorJozef Gloncak <jgloncak@cisco.com>
Thu, 24 Jul 2014 09:06:09 +0000 (11:06 +0200)
committerJozef Gloncak <jgloncak@cisco.com>
Mon, 12 Jan 2015 06:59:19 +0000 (07:59 +0100)
commit7b9984d3dc67af4f3ce5f93adc0a0e7e13cfc511
treeb5c0ab56911b1aee17a7b29cd54380564f5061df
parentcb4eaa0fb97a0f30c8a11c3860653e7c2550178b
findModule method refactoring

From method findModule() of RestconfImpl was removed original exception
because the case when data == null can't (before every call of findModule
is checked whether data != null)

New exception was added because just after calling of findModule() method
was always checked whether returning value is != null and if it was so the
exception was raised.

Change-Id: I7023ab50e06e6056bc312a2a702bac8bab48ef0a
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/RestconfImpl.java