Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-761

Single argument DataConfiguration APIs always create empty arrays

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7
    • Component/s: None
    • Labels:
      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.

        Attachments

          Activity

            People

            • Assignee:
              ggregory Gary D. Gregory
              Reporter:
              ggregory Gary D. Gregory
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: