diff --git a/java/dagger/internal/codegen/ServiceLoaders.java b/java/dagger/internal/codegen/ServiceLoaders.java index 95773faa819..974f36e2eb2 100644 --- a/java/dagger/internal/codegen/ServiceLoaders.java +++ b/java/dagger/internal/codegen/ServiceLoaders.java @@ -30,8 +30,6 @@ private ServiceLoaders() {} /** * Returns the loaded services for the given class. - * - *

Note: This should only be called in Javac. This method will throw if called in KSP. */ static ImmutableSet loadServices(XProcessingEnv processingEnv, Class clazz) { return ImmutableSet.copyOf(ServiceLoader.load(clazz, classLoaderFor(processingEnv, clazz)));