Uploaded image for project: 'Archiva'
  1. Archiva
  2. MRM-1626

Use MavenXpp3Reader as a static variable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4-M2
    • 1.4-M3
    • None
    • None
    • Linux rhel 6
    • Patch

    Description

      2012/4/17 Charles Kim <charlesk@yahoo-inc.com>:
      > Hi,
      > It seems that MavenXpp3Reader is threadsafe. If so, can this be used
      > as static variable instead of creating it for every request? (Although underlying XmlPullParser does the heavy lifting) Thanks.
      >

      I think too it's thread safe (good catch !).
      Do you want to submit a patch for this fix ?


      Olivier Lamy
      Talend: http://coders.talend.com
      http://twitter.com/olamy | http://linkedin.com/in/olamy

      Attachments

        1. patch.txt
          1.0 kB
          Charles King

        Activity

          People

            olamy Olivier Lamy
            charlesk Charles King
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: