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 0968429 commit 7cb1671Copy full SHA for 7cb1671
buildSrc/src/main/java/org/springframework/boot/build/bom/BomExtension.java
@@ -365,8 +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];
+ if (args instanceof Object[] objects && objects.length == 1) {
+ Object arg = objects[0];
370
if (arg instanceof Closure<?> closure) {
371
ModuleHandler moduleHandler = new ModuleHandler();
372
closure.setResolveStrategy(Closure.DELEGATE_FIRST);
0 commit comments