Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-886

DateTools: Raw array returned instead of copy

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 2.24.12, 2.26.00
    • None
    • Sprint 71

    Description

      DateTools has the following method:
      public static Resolution[] getSupportedDateResolutions();

      Problem with the implementation is that it returns the static instance field supportedResolutions instead of a copy. This way callers can modify the contents of the array.

      Attachments

        Activity

          People

            meggermont Michiel Eggermont (Inactive)
            meggermont Michiel Eggermont (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: