You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Charles Kim <ch...@yahoo-inc.com> on 2012/04/17 00:02:35 UTC
MavenXpp3Reader threadsafe?
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.
RE: MavenXpp3Reader threadsafe?
Posted by Charles Kim <ch...@yahoo-inc.com>.
https://jira.codehaus.org/browse/MRM-1626
Created. Thanks!
-----Original Message-----
From: Olivier Lamy [mailto:olamy@apache.org]
Sent: Tuesday, April 17, 2012 4:20 AM
To: users@archiva.apache.org
Subject: Re: MavenXpp3Reader threadsafe?
2012/4/17 Charles Kim <ch...@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
Re: MavenXpp3Reader threadsafe?
Posted by Olivier Lamy <ol...@apache.org>.
2012/4/17 Charles Kim <ch...@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