From ee18153345c2ebde9046edc6b62760e29ea094a9 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 30 Oct 2012 23:30:39 +0000 Subject: [PATCH] not needed cast and remove non used field git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1403926 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/repository/metadata/RepositoryMetadataWriter.java | 4 ++-- .../org/apache/archiva/webdav/ArchivaDavResourceFactory.java | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/metadata/RepositoryMetadataWriter.java b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/metadata/RepositoryMetadataWriter.java index f8eb390f2..3f0632903 100644 --- a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/metadata/RepositoryMetadataWriter.java +++ b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/metadata/RepositoryMetadataWriter.java @@ -87,7 +87,7 @@ public class RepositoryMetadataWriter if ( CollectionUtils.isNotEmpty( metadata.getPlugins() ) ) { Element plugins = root.addElement( "plugins" ); - for ( Plugin plugin : (List) metadata.getPlugins() ) + for ( Plugin plugin : metadata.getPlugins() ) { Element p = plugins.addElement( "plugin" ); p.addElement( "prefix" ).setText( plugin.getPrefix() ); @@ -119,7 +119,7 @@ public class RepositoryMetadataWriter Iterator it = metadata.getAvailableVersions().iterator(); while ( it.hasNext() ) { - String version = (String) it.next(); + String version = it.next(); versions.addElement( "version" ).setText( version ); } } 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 d1792b33b..e513b7bb7 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 @@ -117,8 +117,6 @@ public class ArchivaDavResourceFactory private static final String HTTP_PUT_METHOD = "PUT"; - private static final MavenXpp3Reader MAVEN_XPP_3_READER = new MavenXpp3Reader(); - private Logger log = LoggerFactory.getLogger( ArchivaDavResourceFactory.class ); /** -- 2.39.5