8365898: Specification of java.lang.module.ModuleDescriptor.packages() method can be improved

Reviewed-by: alanb, liach
This commit is contained in:
Jaikiran Pai 2025-08-29 00:46:53 +00:00
parent 05da2137f1
commit b8cdf31a2e

View File

@ -1516,11 +1516,7 @@ public final class ModuleDescriptor
}
/**
* Returns the set of packages in the module.
*
* <p> The set of packages includes all exported and open packages, as well
* as the packages of any service providers, and the package for the main
* class. </p>
* Returns the set of all packages in the module.
*
* @return A possibly-empty unmodifiable set of the packages in the module
*/