Simplify code
See gh-23111
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user