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.
1 parent 7cb1671 commit 2c012edCopy full SHA for 2c012ed
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[] objects && objects.length == 1) {
369
- Object arg = objects[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