Simplify code

See gh-23111
pull/23159/head
EruDev 4 years ago committed by Stephane Nicoll
parent ce169c4d51
commit ffc577b499

@ -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)

@ -53,10 +53,7 @@ class WebDriverContextCustomizerFactory implements ContextCustomizerFactory {
if (obj == this) {
return true;
}
if (obj == null || obj.getClass() != getClass()) {
return false;
}
return true;
return obj != null && obj.getClass() == getClass();
}
@Override

@ -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));
}
/**

Loading…
Cancel
Save