We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0968429 + 2c012ed commit fb78303Copy full SHA for fb78303
buildSrc/src/main/java/org/springframework/boot/build/bom/BomExtension.java
@@ -365,9 +365,8 @@ public void setPlugins(List<String> plugins) {
365
}
366
367
public Object methodMissing(String name, Object args) {
368
- if (args instanceof Object[] && ((Object[]) args).length == 1) {
369
- Object arg = ((Object[]) args)[0];
370
- if (arg instanceof Closure<?> closure) {
+ if (args instanceof Object[] argsArray && argsArray.length == 1) {
+ if (argsArray[0] instanceof Closure<?> closure) {
371
ModuleHandler moduleHandler = new ModuleHandler();
372
closure.setResolveStrategy(Closure.DELEGATE_FIRST);
373
closure.setDelegate(moduleHandler);
0 commit comments