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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user