jodd-bean/src/main/java/jodd/bean/BeanUtilUtil.java
protected void arrayForcedSet(final BeanProperty bp, Object array, final int index, Object value) {
		Class componentType = array.getClass().getComponentType();
		array = ensureArraySize(bp, array, componentType, index);
		value = convertType(value, componentType);
		Array.set(array, index, value);
	}
protected void arrayForcedSet(final BeanProperty bp, Object array, final int index, Object value) {
		Class componentType = array.getClass().getComponentType();
		array = ensureArraySize(bp, array, componentType, index);
		value = convertType(value, componentType);
		Array.set(array, index, value);
	}
protected void arrayForcedSet ( final BeanProperty bp , Object array , final int index , Object value ) { Class componentType = array . getClass ( ) . getComponentType ( ) ; array = ensureArraySize ( bp , array , componentType , index ) ; value = convertType ( value , componentType ) ; Array . set ( array , index , value ) ; }
Sets the array element forced. If index is greater then arrays length, array will be expanded to the index.
If speed is critical, it is better to allocate an array with proper size before using this method.
Sets the array element forced . If index is greater then arrays length array will be expanded to the index . If speed is critical it is better to allocate an array with proper size before using this method .