Polish code and javadoc

See gh-37112
This commit is contained in:
hakan-krgn
2023-08-28 10:32:36 +03:00
committed by Andy Wilkinson
parent 0f6342a882
commit 6d9ce8a3b5
6 changed files with 5 additions and 11 deletions

View File

@@ -119,8 +119,7 @@ public abstract class AnnotationCustomizableTypeExcludeFilter extends TypeExclud
return false;
}
AnnotationCustomizableTypeExcludeFilter other = (AnnotationCustomizableTypeExcludeFilter) obj;
boolean result = true;
result = result && hasAnnotation() == other.hasAnnotation();
boolean result = hasAnnotation() == other.hasAnnotation();
for (FilterType filterType : FilterType.values()) {
result &= ObjectUtils.nullSafeEquals(getFilters(filterType), other.getFilters(filterType));
}

View File

@@ -58,7 +58,7 @@ public @interface AutoConfigureTestDatabase {
/**
* The type of connection to be established when {@link #replace() replacing} the
* DataSource. By default will attempt to detect the connection based on the
* DataSource. By default, will attempt to detect the connection based on the
* classpath.
* @return the type of connection to use
*/

View File

@@ -159,11 +159,6 @@ public class TestDatabaseAutoConfiguration {
return EmbeddedDatabase.class;
}
@Override
public boolean isSingleton() {
return true;
}
}
static class EmbeddedDataSourceFactory {

View File

@@ -103,7 +103,7 @@ class WebDriverScope implements Scope {
/**
* Register this scope with the specified context and reassign appropriate bean
* definitions to used it.
* definitions to use it.
* @param context the application context
*/
static void registerWith(ConfigurableApplicationContext context) {