rfscholte commented on a change in pull request #14: Exclude non-exported 
packages when Java Modules are present.
URL: 
https://github.com/apache/maven-javadoc-plugin/pull/14#discussion_r243990204
 
 

 ##########
 File path: 
src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java
 ##########
 @@ -4342,6 +4351,102 @@ private void copyAdditionalJavadocResources( File 
anOutputDirectory )
         return getPackageNamesOrFilesWithUnnamedPackages( sourcePaths, files, 
true );
     }
 
+    /**
+     * @param allSourcePaths     not null, containing absolute and relative 
paths
+     * @return a list of exported package names for files in allSourcePaths
+     * @throws MavenReportException if any
+     * @see #getFiles
+     * @see #getSourcePaths()
+     */
+    private List<String> getPackageNamesRespectingJavaModules( Map<String, 
Collection<String>> allSourcePaths )
+            throws MavenReportException
+    {
+        List<String> returnList = new ArrayList<>();
+
+        if ( !StringUtils.isEmpty( sourcepath ) )
+        {
+            return returnList;
+        }
+        LocationManager locationManager = new LocationManager();
 
 Review comment:
   locationManager is used at least twice now, which is pretty expensive. I'll 
refactor it

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to