summaryrefslogtreecommitdiffstats
path: root/vpp-api/java/jvpp/gen/jvpp_impl_gen.py
diff options
context:
space:
mode:
Diffstat (limited to 'vpp-api/java/jvpp/gen/jvpp_impl_gen.py')
-rw-r--r--vpp-api/java/jvpp/gen/jvpp_impl_gen.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/vpp-api/java/jvpp/gen/jvpp_impl_gen.py b/vpp-api/java/jvpp/gen/jvpp_impl_gen.py
index 08ebddfcf97..4e2625714a9 100644
--- a/vpp-api/java/jvpp/gen/jvpp_impl_gen.py
+++ b/vpp-api/java/jvpp/gen/jvpp_impl_gen.py
@@ -52,10 +52,7 @@ public final class JVppImpl implements $base_package.JVpp {
private final $base_package.VppConnection connection;
public JVppImpl(final $base_package.VppConnection connection) {
- if(connection == null) {
- throw new java.lang.NullPointerException("Connection is null");
- }
- this.connection = connection;
+ this.connection = java.util.Objects.requireNonNull(connection,"Connection is null");
}
@Override