Merge pull request #23111 from EruDev

* pr/23111:
  Polish "Simplify code"
  Simplify code

Closes gh-23111
This commit is contained in:
Stephane Nicoll
2020-09-01 10:11:39 +02:00
2 changed files with 3 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2019 the original author or authors.
* Copyright 2012-2020 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.
@@ -61,10 +61,7 @@ public abstract class AnnotationCustomizableTypeExcludeFilter extends TypeExclud
metadataReaderFactory)) {
return true;
}
if (isUseDefaultFilters() && defaultInclude(metadataReader, metadataReaderFactory)) {
return true;
}
return false;
return isUseDefaultFilters() && defaultInclude(metadataReader, metadataReaderFactory);
}
protected boolean defaultInclude(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory)

View File

@@ -56,7 +56,7 @@ public class BuildInfoProperties implements Serializable {
this.version = project.getObjects().property(String.class);
this.version.set(project.provider(() -> project.getVersion().toString()));
this.name = project.getObjects().property(String.class);
this.name.set(project.provider(() -> project.getName()));
this.name.set(project.provider(project::getName));
}
/**