[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:
Olivier Lamy 2012-04-19 09:23:29 +00:00
parent 3baaf0c3bd
commit f287535cfb
1 changed files with 3 additions and 1 deletions

View File

@ -120,6 +120,8 @@ public class ArchivaDavResourceFactory
private static final String HTTP_PUT_METHOD = "PUT";
private static final MavenXpp3Reader mavenXpp3Reader = new MavenXpp3Reader();
private Logger log = LoggerFactory.getLogger( ArchivaDavResourceFactory.class );
/**
@ -761,7 +763,7 @@ public class ArchivaDavResourceFactory
Model model = null;
try
{
model = new MavenXpp3Reader().read( reader );
model = mavenXpp3Reader.read(reader);
}
finally
{