Skip to content

Commit da3f84f

Browse files
committed
Merge pull request #23111 from EruDev
* pr/23111: Polish "Simplify code" Simplify code Closes gh-23111
2 parents ce169c4 + 5a86162 commit da3f84f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

spring-boot-project/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/filter/AnnotationCustomizableTypeExcludeFilter.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -61,10 +61,7 @@ protected boolean include(MetadataReader metadataReader, MetadataReaderFactory m
6161
metadataReaderFactory)) {
6262
return true;
6363
}
64-
if (isUseDefaultFilters() && defaultInclude(metadataReader, metadataReaderFactory)) {
65-
return true;
66-
}
67-
return false;
64+
return isUseDefaultFilters() && defaultInclude(metadataReader, metadataReaderFactory);
6865
}
6966

7067
protected boolean defaultInclude(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory)

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/tasks/buildinfo/BuildInfoProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class BuildInfoProperties implements Serializable {
5656
this.version = project.getObjects().property(String.class);
5757
this.version.set(project.provider(() -> project.getVersion().toString()));
5858
this.name = project.getObjects().property(String.class);
59-
this.name.set(project.provider(() -> project.getName()));
59+
this.name.set(project.provider(project::getName));
6060
}
6161

6262
/**

0 commit comments

Comments
 (0)