maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject svn commit: r1747978 - /maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/resolver/ResourceResolver.java
Date Sun, 12 Jun 2016 11:00:05 GMT
Author: rfscholte
Date: Sun Jun 12 11:00:05 2016
New Revision: 1747978

URL: http://svn.apache.org/viewvc?rev=1747978&view=rev
Log:
[MJAVADOC-456] Upgrade to Maven3 plugin
cleanup SuppressWarnings

Modified:
    maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/resolver/ResourceResolver.java

Modified: maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/resolver/ResourceResolver.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/resolver/ResourceResolver.java?rev=1747978&r1=1747977&r2=1747978&view=diff
==============================================================================
--- maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/resolver/ResourceResolver.java
(original)
+++ maven/plugins/trunk/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/resolver/ResourceResolver.java
Sun Jun 12 11:00:05 2016
@@ -85,7 +85,6 @@ public final class ResourceResolver
      * @return list of {@link JavadocBundle}.
      * @throws IOException {@link IOException}
      */
-    @SuppressWarnings( "unchecked" )
     public static List<JavadocBundle> resolveDependencyJavadocBundles( final SourceResolverConfig
config )
         throws IOException
     {
@@ -128,7 +127,6 @@ public final class ResourceResolver
      * @throws ArtifactResolutionException {@link ArtifactResolutionException}
      * @throws ArtifactNotFoundException {@link ArtifactNotFoundException}
      */
-    @SuppressWarnings( "unchecked" )
     public static List<String> resolveDependencySourcePaths( final SourceResolverConfig
config )
         throws ArtifactResolutionException, ArtifactNotFoundException
     {
@@ -347,7 +345,6 @@ public final class ResourceResolver
         return a;
     }
 
-    @SuppressWarnings( "unchecked" )
     private static List<String> resolveAndUnpack( final List<Artifact> artifacts,
final SourceResolverConfig config,
                                                   final List<String> validClassifiers,
final boolean propagateErrors )
         throws ArtifactResolutionException, ArtifactNotFoundException
@@ -374,8 +371,7 @@ public final class ResourceResolver
 
         final ArtifactResolver resolver = config.artifactResolver();
         
-        @SuppressWarnings( "rawtypes" )
-        Map managed = config.project().getManagedVersionMap();
+        Map<String, Artifact> managed = config.project().getManagedVersionMap();
         
         final ArtifactResolutionResult resolutionResult = resolver.resolveTransitively(
                 artifactSet, pomArtifact, managed, localRepo, remoteRepos, metadataSource,
resolutionFilter );
@@ -427,7 +423,6 @@ public final class ResourceResolver
         return result;
     }
 
-    @SuppressWarnings( "unchecked" )
     private static List<String> resolveFromProject( final SourceResolverConfig config,
                                                     final MavenProject reactorProject, final
Artifact artifact )
     {



Mime
View raw message