Inspectopedia
 
2024.3

Usage of service not declared in 'module-info'

Warning
New
Last modified: 03 December 2024

Reports situations in which a service is loaded with java.util.ServiceLoader but it isn't declared with the uses clause in the module-info.java file and suggests inserting it.

This inspection depends on the Java feature 'Modules', which is available since Java 9.

New in 2018.1