Revise signature of SpringFactoriesLoader.forResourceLocation(...)

When an overloaded method accepts additional "optional" arguments, we
typically declare the optional arguments after the required arguments.
For example, see the constructors for ClassPathResource.

This commit therefore revises the signature of the overloaded
forResourceLocation() method so that the optional ClassLoader argument
follows the required `String resourceLocation` argument.
This commit is contained in:
Sam Brannen
2022-06-20 17:39:01 +02:00
parent b611157108
commit 789329fa3b
2 changed files with 7 additions and 7 deletions

View File

@@ -62,8 +62,8 @@ public class AotFactoriesLoader {
ClassLoader classLoader = (beanFactory instanceof ConfigurableBeanFactory configurableBeanFactory)
? configurableBeanFactory.getBeanClassLoader() : null;
this.beanFactory = beanFactory;
this.factoriesLoader = SpringFactoriesLoader.forResourceLocation(classLoader,
FACTORIES_RESOURCE_LOCATION);
this.factoriesLoader = SpringFactoriesLoader.forResourceLocation(FACTORIES_RESOURCE_LOCATION,
classLoader);
}
/**