Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polish javadoc #37112

Closed
Closed
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private Mono<Health> handleFailure(Throwable ex) {
}

/**
* Actual health check logic. If an error occurs in the pipeline it will be handled
* Actual health check logic. If an error occurs in the pipeline, it will be handled
* automatically.
* @param builder the {@link Health.Builder} to report health status and details
* @return a {@link Mono} that provides the {@link Health}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ public boolean equals(Object obj) {
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));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

/**
* 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
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,6 @@ public Class<?> getObjectType() {
return EmbeddedDatabase.class;
}

@Override
public boolean isSingleton() {
return true;
}

}

static class EmbeddedDataSourceFactory {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private void collectProperties(String prefix, SkipPropertyMapping skip, MergedAn
return;
}
Optional<Object> value = annotation.getValue(attribute.getName());
if (!value.isPresent()) {
if (value.isEmpty()) {
return;
}
if (skip == SkipPropertyMapping.ON_DEFAULT_VALUE) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ private Class<?> getRoot(MergedAnnotation<?> annotation) {
private String getAnnotationsDescription(Set<Class<?>> annotations) {
StringBuilder result = new StringBuilder();
for (Class<?> annotation : annotations) {
if (result.length() != 0) {
if (!result.isEmpty()) {
result.append(", ");
}
result.append('@').append(ClassUtils.getShortName(annotation));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ boolean reset() {

/**
* 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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ protected ConfigurableApplicationContext createApplicationContext() {
}

/**
* Apply any relevant post processing the {@link ApplicationContext}. Subclasses can
* Apply any relevant post-processing the {@link ApplicationContext}. Subclasses can
* apply additional processing as required.
* @param context the application context
*/
Expand Down