diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootArchiveSupport.java b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootArchiveSupport.java index 330bc1aef1..e90a6335b5 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootArchiveSupport.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/bundling/BootArchiveSupport.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2023 the original author or authors. + * Copyright 2012-2024 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -150,11 +150,11 @@ class BootArchiveSupport { } private Integer getDirMode(CopySpec copySpec) { - return getMode(copySpec, "getDirPermissions", copySpec::getDirMode); + return getMode(copySpec, "getDirPermissions", () -> copySpec.getDirMode()); } private Integer getFileMode(CopySpec copySpec) { - return getMode(copySpec, "getFilePermissions", copySpec::getFileMode); + return getMode(copySpec, "getFilePermissions", () -> copySpec.getFileMode()); } @SuppressWarnings("unchecked")