Skip to content

Polish #42192

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

Closed
wants to merge 2 commits into from
Closed

Polish #42192

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,9 @@ else if (ObjectUtils.isArray(value)) {
else if (value instanceof Map<?, ?> map) {
writeObject(map::forEach);
}
else if (value instanceof Number) {
else if (value instanceof Number || value instanceof Boolean) {
append(value.toString());
}
else if (value instanceof Boolean) {
append(Boolean.TRUE.equals(value) ? "true" : "false");
}
else {
writeString(value);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,7 @@ protected void loadConfiguration(LoggingInitializationContext initializationCont

private void load(LoggingInitializationContext initializationContext, String location, LogFile logFile) {
List<String> overrides = getOverrides(initializationContext);
if (initializationContext != null) {
applySystemProperties(initializationContext.getEnvironment(), logFile);
}
applySystemProperties(initializationContext.getEnvironment(), logFile);
loadConfiguration(location, logFile, overrides);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* {@link ApplicationContext} backed {@link ServerWebExchangeMatcher}. Can work directly
* with the {@link ApplicationContext}, obtain an existing bean or
* {@link AutowireCapableBeanFactory#createBean(Class, int, boolean) create a new bean}
* {@link AutowireCapableBeanFactory#createBean(Class) create a new bean}
* that is autowired in the usual way.
*
* @param <C> the type of the context that the match method actually needs to use. Can be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/**
* {@link ApplicationContext} backed {@link RequestMatcher}. Can work directly with the
* {@link ApplicationContext}, obtain an existing bean or
* {@link AutowireCapableBeanFactory#createBean(Class, int, boolean) create a new bean}
* {@link AutowireCapableBeanFactory#createBean(Class) create a new bean}
* that is autowired in the usual way.
*
* @param <C> the type of the context that the match method actually needs to use. Can be
Expand Down
Loading