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

Deprecate ImmutabelConfiguration.getArray() in favour of ImmutabelConfiguration.get().

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
      None

      Description

      It is not possible to use the getArray methods in a type-safe way supporting arrays for primitives and non-primitives. They are completely superfluous on top of it, since the normal get() methods can simply support the array case in a type-safe manner:

      {format:java}
      String[] sArray = config.get(String[].class, "strings");
      int[] intArray = config.get(int[].class, "ints");{format}

      Therefore getArray should be deprecated and the implementation for get() should support the array case directly.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              joehni Joerg Schaible
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: