From 6dbdd575a5fe07da62ac2c94656d1b61ab4710fd Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 5 Nov 2015 10:18:34 +0100 Subject: [PATCH] Polish --- .../autoconfigure/web/WebMvcProperties.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcProperties.java index b887aba20b..8f08918993 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/WebMvcProperties.java @@ -62,15 +62,15 @@ public class WebMvcProperties { */ private boolean throwExceptionIfNoHandlerFound = false; - private final Async async = new Async(); - - private final View view = new View(); - /** * Maps file extensions to media types for content negotiation, e.g. yml->text/yaml. */ private Map mediaTypes = new LinkedHashMap(); + private final Async async = new Async(); + + private final View view = new View(); + public DefaultMessageCodesResolver.Format getMessageCodesResolverFormat() { return this.messageCodesResolverFormat; } @@ -113,14 +113,6 @@ public class WebMvcProperties { this.throwExceptionIfNoHandlerFound = throwExceptionIfNoHandlerFound; } - public Async getAsync() { - return this.async; - } - - public View getView() { - return this.view; - } - public Map getMediaTypes() { return this.mediaTypes; } @@ -129,6 +121,14 @@ public class WebMvcProperties { this.mediaTypes = mediaTypes; } + public Async getAsync() { + return this.async; + } + + public View getView() { + return this.view; + } + public static class Async { /**