8310676: add note about unnamed module to Elements.getAllModuleElements

Reviewed-by: jjg
This commit is contained in:
Joe Darcy 2023-06-23 21:21:41 +00:00
parent bfcca5eff9
commit 69f3114c41

View File

@ -254,6 +254,11 @@ public interface Elements {
* @implSpec The default implementation of this method returns
* an empty set.
*
* @apiNote
* When an environment includes modules, both named modules and
* {@linkplain ModuleElement#isUnnamed() unnamed modules} may be
* returned.
*
* @return the known module elements, or an empty set if there are no modules
* @see #getModuleElement(CharSequence)
* @since 9