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
This commit is contained in:
Olivier Lamy 2012-10-30 23:30:39 +00:00
parent ebaed8593c
commit ee18153345
2 changed files with 2 additions and 4 deletions

View File

@ -87,7 +87,7 @@ public class RepositoryMetadataWriter
if ( CollectionUtils.isNotEmpty( metadata.getPlugins() ) )
{
Element plugins = root.addElement( "plugins" );
for ( Plugin plugin : (List<Plugin>) 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<String> it = metadata.getAvailableVersions().iterator();
while ( it.hasNext() )
{
String version = (String) it.next();
String version = it.next();
versions.addElement( "version" ).setText( version );
}
}

View File

@ -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 );
/**