]> source.dussan.org Git - archiva.git/commitdiff
not needed cast and remove non used field
authorOlivier Lamy <olamy@apache.org>
Tue, 30 Oct 2012 23:30:39 +0000 (23:30 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 30 Oct 2012 23:30:39 +0000 (23:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1403926 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/metadata/RepositoryMetadataWriter.java
archiva-modules/archiva-web/archiva-webdav/src/main/java/org/apache/archiva/webdav/ArchivaDavResourceFactory.java

index f8eb390f2bef45db6310a589187a633c213c91c5..3f063290376e4c8b88ccbf0749f117f21434cf0f 100644 (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 );
                 }
             }
index d1792b33bc56298de52b58fb2b5f44c945d62e01..e513b7bb7b1168c4a7db54e6493d3f4c158b5616 100644 (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 );
 
     /**