Replace explicit type with diamond operator
See gh-39259
This commit is contained in:
committed by
Phillip Webb
parent
ac5a08a49b
commit
cb26c31dd6
@@ -130,7 +130,7 @@ final class ApplicationPluginAction implements PluginApplicationAction {
|
||||
if (GradleVersion.current().compareTo(GradleVersion.version("8.3")) >= 0) {
|
||||
try {
|
||||
Method filePermissions = copySpec.getClass().getMethod("filePermissions", Action.class);
|
||||
filePermissions.invoke(copySpec, new Action<Object>() {
|
||||
filePermissions.invoke(copySpec, new Action<>() {
|
||||
|
||||
@Override
|
||||
public void execute(Object filePermissions) {
|
||||
|
||||
@@ -50,7 +50,7 @@ class DynamicRegistrationBeanTests {
|
||||
}
|
||||
|
||||
private static DynamicRegistrationBean<?> createBean() {
|
||||
return new DynamicRegistrationBean<Dynamic>() {
|
||||
return new DynamicRegistrationBean<>() {
|
||||
@Override
|
||||
protected Dynamic addRegistration(String description, ServletContext servletContext) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user