Polish
This commit is contained in:
@@ -708,8 +708,8 @@ public class ConfigurationMetadataAnnotationProcessorTests {
|
||||
|
||||
private Metadata.MetadataItemCondition webPath(String endpointId) {
|
||||
return Metadata.withProperty("endpoints." + endpointId + ".web.path")
|
||||
.ofType(String.class).withDefaultValue(endpointId).withDescription(String
|
||||
.format("Path of the %s endpoint.", endpointId));
|
||||
.ofType(String.class).withDefaultValue(endpointId)
|
||||
.withDescription(String.format("Path of the %s endpoint.", endpointId));
|
||||
}
|
||||
|
||||
private Metadata.MetadataItemCondition cacheTtl(String endpointId) {
|
||||
|
||||
@@ -141,9 +141,8 @@ final class JavaPluginAction implements PluginApplicationAction {
|
||||
|
||||
private void configureAdditionalMetadataLocations(Project project) {
|
||||
project.afterEvaluate((evaluated) -> {
|
||||
evaluated.getTasks().withType(JavaCompile.class, (compile) -> {
|
||||
configureAdditionalMetadataLocations(project, compile);
|
||||
});
|
||||
evaluated.getTasks().withType(JavaCompile.class,
|
||||
(compile) -> configureAdditionalMetadataLocations(project, compile));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user