Skip to content

Commit cb26c31

Browse files
tobias-lippertphilwebb
authored andcommitted
Replace explicit type with diamond operator
See gh-39259
1 parent ac5a08a commit cb26c31

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/ApplicationPluginAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private void configureFilePermissions(CopySpec copySpec, int mode) {
130130
if (GradleVersion.current().compareTo(GradleVersion.version("8.3")) >= 0) {
131131
try {
132132
Method filePermissions = copySpec.getClass().getMethod("filePermissions", Action.class);
133-
filePermissions.invoke(copySpec, new Action<Object>() {
133+
filePermissions.invoke(copySpec, new Action<>() {
134134

135135
@Override
136136
public void execute(Object filePermissions) {

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/DynamicRegistrationBeanTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void shouldUseConventionBasedNameIfNoNameOrBeanNameIsSet() {
5050
}
5151

5252
private static DynamicRegistrationBean<?> createBean() {
53-
return new DynamicRegistrationBean<Dynamic>() {
53+
return new DynamicRegistrationBean<>() {
5454
@Override
5555
protected Dynamic addRegistration(String description, ServletContext servletContext) {
5656
return null;

0 commit comments

Comments
 (0)