HistoryCleanupHelper uses not thread safe SimpleDateFormat as class field

XMLWordPrintable

      The HistoryCleanupHelper has a
      SimpleDateFormat instance as class field which it uses unsynchronized.

      From the SimpleDateFormat docs:

      Date formats are not synchronized. It is recommended to create separate format instances for each thread. If multiple threads access a format concurrently, it must be synchronized externally.

      The SimpleDateFormat for example uses a calendar field which is modified during parsing of a date.

      AT:

      • the HistoryCleanupHelper uses the SimpleDateFormat in a thread safe way or a thread safe alternative

            Assignee:
            Nikola Koevski
            Reporter:
            Roman Smirnov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: