private static void assertArrayLength ( final int length , final JBBPNamedFieldInfo name ) { if ( length < 0 ) { throw new JBBPParsingException ( "Detected negative calculated array length for field '" + ( name == null ? "<NO NAME>" : name . getFieldPath ( ) ) + "\' [" + JBBPUtils . int2msg ( length ) + ' ' ) ; } }
Ensure that an array length is not a negative one .