Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-1691

TransactionManager should use try-with-resource for timers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.8.0, 2.0.0
    • 2.0.0
    • Sentry

    Description

      There are a few places in TransactionManager where it creates a timer context and closes it explicitly in the finally block. Instead we should use try-with-resource to close it.

      Attachments

        Issue Links

          Activity

            People

              spena Sergio Peña
              akolb Alex Kolbasov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: