diff options
author | Tibor Sirovatka <tsirovat@cisco.com> | 2016-05-09 16:41:31 +0200 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2016-05-12 03:15:23 +0000 |
commit | c2880669216f93ad1c709e3e261991bea2999a50 (patch) | |
tree | 723141d5cc87aa1bb4677e3af08039330823e723 /vpp-api/java/jvpp/gen/jvpp_callback_facade_gen.py | |
parent | e6250e0a7ff77d421f9d9b01357520cca14288d5 (diff) |
JVPP - null checks changed to Objects.requireNonNull usage
Review changes incorporated
Change-Id: Ia04b62144a0d3643095b518db538c7eb5137c048
Signed-off-by: Tibor Sirovatka <tsirovat@cisco.com>
Diffstat (limited to 'vpp-api/java/jvpp/gen/jvpp_callback_facade_gen.py')
-rw-r--r-- | vpp-api/java/jvpp/gen/jvpp_callback_facade_gen.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vpp-api/java/jvpp/gen/jvpp_callback_facade_gen.py b/vpp-api/java/jvpp/gen/jvpp_callback_facade_gen.py index 7b8723bf87c..de239b6d1a3 100644 --- a/vpp-api/java/jvpp/gen/jvpp_callback_facade_gen.py +++ b/vpp-api/java/jvpp/gen/jvpp_callback_facade_gen.py @@ -53,10 +53,7 @@ public final class CallbackJVppFacade implements $base_package.$callback_facade_ public CallbackJVppFacade(final $base_package.JVpp jvpp, java.util.Map<Integer, $base_package.$callback_package.JVppCallback> callbacks) { - if(jvpp == null) { - throw new java.lang.NullPointerException("jvpp is null"); - } - this.jvpp = jvpp; + this.jvpp = java.util.Objects.requireNonNull(jvpp,"jvpp is null"); this.callbacks = callbacks; } |