src/main/java/com/mxgraph/util/svg/ExtendedGeneralPath.java
private void makeRoom(int numValues)
	{
		if (values == null)
		{
			values = new float[2 * numValues];
			types = new int[2];
			numVals = 0;
			numSeg = 0;
			return;
		}

		int newSize = numVals + numValues;
		if (newSize > values.length)
		{
			int nlen = values.length * 2;
			if (nlen < newSize)
				nlen = newSize;

			float[] nvals = new float[nlen];
			System.arraycopy(values, 0, nvals, 0, numVals);
			values = nvals;
		}

		if (numSeg == types.length)
		{
			int[] ntypes = new int[types.length * 2];
			System.arraycopy(types, 0, ntypes, 0, types.length);
			types = ntypes;
		}
	}
/**
	 * Make sure, that the requested number of slots in vales[] are available.
	 * Must be called even for numValues = 0, because it is also
	 * used for initialization of those arrays.
	 *
	 * @param numValues number of requested coordinates
	 */
Make sure, that the requested number of slots in vales[] are available.
Must be called even for numValues = 0, because it is also
used for initialization of those arrays.

@param numValues number of requested coordinates
Make sure that the requested number of slots in vales [] are available . Must be called even for numValues = 0 because it is also used for initialization of those arrays . @param numValues number of requested coordinates
private void makeRoom(int numValues)
	{
		if (values == null)
		{
			values = new float[2 * numValues];
			types = new int[2];
			numVals = 0;
			numSeg = 0;
			return;
		}
		int newSize = numVals + numValues;
		if (newSize > values.length)
		{
			int nlen = values.length * 2;
			if (nlen < newSize)
				nlen = newSize;
			float[] nvals = new float[nlen];
			System.arraycopy(values, 0, nvals, 0, numVals);
			values = nvals;
		}
		if (numSeg == types.length)
		{
			int[] ntypes = new int[types.length * 2];
			System.arraycopy(types, 0, ntypes, 0, types.length);
			types = ntypes;
		}
	}
private void makeRoom ( int numValues ) { if ( values == null ) { values = new float [ 2 * numValues ] ; types = new int [ 2 ] ; numVals = 0 ; numSeg = 0 ; return ; } int newSize = numVals + numValues ; if ( newSize > values . length ) { int nlen = values . length * 2 ; if ( nlen < newSize ) nlen = newSize ; float [ ] nvals = new float [ nlen ] ; System . arraycopy ( values , 0 , nvals , 0 , numVals ) ; values = nvals ; } if ( numSeg == types . length ) { int [ ] ntypes = new int [ types . length * 2 ] ; System . arraycopy ( types , 0 , ntypes , 0 , types . length ) ; types = ntypes ; } }
Make sure, that the requested number of slots in vales[] are available.
Make sure that the requested number of slots in vales [] are available .