]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1626] Use MavenXpp3Reader as a static variable
authorOlivier Lamy <olamy@apache.org>
Thu, 19 Apr 2012 09:23:29 +0000 (09:23 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 19 Apr 2012 09:23:29 +0000 (09:23 +0000)
Submitted by charlie kim.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1327887 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java

index 5975fa07ec5137cbc5100b4aa3738b69ae64919d..8d59c7a9069db79f8c2225953ee1b79e9261330b 100644 (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
             {