Improve JNI code generation (array truncation)
Improve JNI code generation (array truncation)

Fixes DEADCODE coverity issue:

size_t max_size = 0;
if (max_size != 0 && ...)

Change-Id: I0e3ea4e4ddddb476519490c6f00208379089397c
Signed-off-by: Marek Gradzki <3ca09cd7b7147613247c2a96dcdb0ba33114f8e7@cisco.com>

chrisy/vpp,FDio/vpp,FDio/vpp,vpp-dev/vpp,chrisy/vpp,GabrielGanne/vpp-flowtable,chrisy/vpp,GabrielGanne/vpp-flowtable,chrisy/vpp,chrisy/vpp,FDio/vpp,vpp-dev/vpp,milanlenco/vpp,FDio/vpp,vpp-dev/vpp,milanlenco/vpp,milanlenco/vpp,FDio/vpp,GabrielGanne/vpp-flowtable,milanlenco/vpp,vpp-dev/vpp,FDio/vpp,vpp-dev/vpp,GabrielGanne/vpp-flowtable,FDio/vpp,GabrielGanne/vpp-flowtable,GabrielGanne/vpp-flowtable,chrisy/vpp,milanlenco/vpp,chrisy/vpp,vpp-dev/vpp,chrisy/vpp,milanlenco/vpp,FDio/vpp,vpp-dev/vpp