Skip to content

Commit 9f7106c

Browse files
committed
Polish
1 parent 6cc0968 commit 9f7106c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowEmbeddedServletContainerFactory.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ private void configureAccessLog(DeploymentInfo deploymentInfo) {
426426
XnioWorker worker = createWorker();
427427
String prefix = (this.accessLogPrefix != null ? this.accessLogPrefix
428428
: "access_log.");
429-
DefaultAccessLogReceiver accessLogReceiver = new DefaultAccessLogReceiver(
429+
final DefaultAccessLogReceiver accessLogReceiver = new DefaultAccessLogReceiver(
430430
worker, this.accessLogDirectory, prefix, this.accessLogSuffix,
431431
this.accessLogRotate);
432432
EventListener listener = new AccessLogShutdownListener(worker,
@@ -450,8 +450,8 @@ public HttpHandler wrap(HttpHandler handler) {
450450
private AccessLogHandler createAccessLogHandler(HttpHandler handler,
451451
AccessLogReceiver accessLogReceiver) {
452452
createAccessLogDirectoryIfNecessary();
453-
String formatString = (this.accessLogPattern != null) ? this.accessLogPattern
454-
: "common";
453+
String formatString = ((this.accessLogPattern != null) ? this.accessLogPattern
454+
: "common");
455455
return new AccessLogHandler(handler, accessLogReceiver, formatString,
456456
Undertow.class.getClassLoader());
457457
}

0 commit comments

Comments
 (0)