mirror of https://github.com/apache/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
This commit is contained in:
parent
ebaed8593c
commit
ee18153345
|
@ -87,7 +87,7 @@ public class RepositoryMetadataWriter
|
||||||
if ( CollectionUtils.isNotEmpty( metadata.getPlugins() ) )
|
if ( CollectionUtils.isNotEmpty( metadata.getPlugins() ) )
|
||||||
{
|
{
|
||||||
Element plugins = root.addElement( "plugins" );
|
Element plugins = root.addElement( "plugins" );
|
||||||
for ( Plugin plugin : (List<Plugin>) metadata.getPlugins() )
|
for ( Plugin plugin : metadata.getPlugins() )
|
||||||
{
|
{
|
||||||
Element p = plugins.addElement( "plugin" );
|
Element p = plugins.addElement( "plugin" );
|
||||||
p.addElement( "prefix" ).setText( plugin.getPrefix() );
|
p.addElement( "prefix" ).setText( plugin.getPrefix() );
|
||||||
|
@ -119,7 +119,7 @@ public class RepositoryMetadataWriter
|
||||||
Iterator<String> it = metadata.getAvailableVersions().iterator();
|
Iterator<String> it = metadata.getAvailableVersions().iterator();
|
||||||
while ( it.hasNext() )
|
while ( it.hasNext() )
|
||||||
{
|
{
|
||||||
String version = (String) it.next();
|
String version = it.next();
|
||||||
versions.addElement( "version" ).setText( version );
|
versions.addElement( "version" ).setText( version );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,8 +117,6 @@ public class ArchivaDavResourceFactory
|
||||||
|
|
||||||
private static final String HTTP_PUT_METHOD = "PUT";
|
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 );
|
private Logger log = LoggerFactory.getLogger( ArchivaDavResourceFactory.class );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue