mirror of https://github.com/apache/archiva.git
[MRM-1626] Use MavenXpp3Reader as a static variable
Submitted by charlie kim. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1327887 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3baaf0c3bd
commit
f287535cfb
|
@ -120,6 +120,8 @@ public class ArchivaDavResourceFactory
|
||||||
|
|
||||||
private static final String HTTP_PUT_METHOD = "PUT";
|
private static final String HTTP_PUT_METHOD = "PUT";
|
||||||
|
|
||||||
|
private static final MavenXpp3Reader mavenXpp3Reader = new MavenXpp3Reader();
|
||||||
|
|
||||||
private Logger log = LoggerFactory.getLogger( ArchivaDavResourceFactory.class );
|
private Logger log = LoggerFactory.getLogger( ArchivaDavResourceFactory.class );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -761,7 +763,7 @@ public class ArchivaDavResourceFactory
|
||||||
Model model = null;
|
Model model = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
model = new MavenXpp3Reader().read( reader );
|
model = mavenXpp3Reader.read(reader);
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue