diff options
author | Olivier Lamy <olamy@apache.org> | 2012-04-19 09:23:29 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-04-19 09:23:29 +0000 |
commit | f287535cfba9e5e9cb77179e21899351e77fd3ab (patch) | |
tree | eff2e0d88bdff98c541c932c4d5599f808a6c6d7 /archiva-modules | |
parent | 3baaf0c3bd9f3a2a1aef3b1fbdeabf8c45bf3045 (diff) | |
download | archiva-f287535cfba9e5e9cb77179e21899351e77fd3ab.tar.gz archiva-f287535cfba9e5e9cb77179e21899351e77fd3ab.zip |
[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
Diffstat (limited to 'archiva-modules')
-rw-r--r-- | archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java index 5975fa07e..8d59c7a90 100644 --- a/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java +++ b/archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java @@ -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 { |