Uploaded image for project: 'Hippo Repository'
  1. Hippo Repository
  2. REPO-886

DateTools: Raw array returned instead of copy

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.24.12, 2.26.00
    • Labels:
    • Similar issues:
    • Sprint:
      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

            • Assignee:
              meggermont Michiel Eggermont
              Reporter:
              meggermont Michiel Eggermont
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: