Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The following single argument APIs in org.apache.commons.configuration2.DataConfiguration always create empty arrays:
- org.apache.commons.configuration2.DataConfiguration.getBigDecimalArray(String)
- org.apache.commons.configuration2.DataConfiguration.getBigIntegerArray(String)
- org.apache.commons.configuration2.DataConfiguration.getByteArray(String)
- org.apache.commons.configuration2.DataConfiguration.getCalendarArray(String)
- org.apache.commons.configuration2.DataConfiguration.getColorArray(String)
- org.apache.commons.configuration2.DataConfiguration.getDateArray(String)
- org.apache.commons.configuration2.DataConfiguration.getDoubleArray(String)
- org.apache.commons.configuration2.DataConfiguration.getFloatArray(String)
- org.apache.commons.configuration2.DataConfiguration.getIntArray(String)
- org.apache.commons.configuration2.DataConfiguration.getLocaleArray(String)
- org.apache.commons.configuration2.DataConfiguration.getLongArray(String)
- org.apache.commons.configuration2.DataConfiguration.getShortArray(String)
- org.apache.commons.configuration2.DataConfiguration.getURIArray(String)
- org.apache.commons.configuration2.DataConfiguration.getURLArray(String)
Instead of always creating new empty arrays like new BigInteger[0], save these in constants.