From: Olivier Lamy Date: Tue, 30 Oct 2012 23:30:39 +0000 (+0000) Subject: not needed cast and remove non used field X-Git-Tag: archiva-1.4-M4~652 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ee18153345c2ebde9046edc6b62760e29ea094a9;p=archiva.git 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 --- 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 ); /**