From 084b2889475398117199ac3f8286735257088afe Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Sat, 9 Apr 2016 21:41:17 -0700 Subject: [PATCH] Polish --- .../embedded/jetty/JettyEmbeddedServletContainerFactory.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactory.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactory.java index eef31f7d81..f2c274b16c 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactory.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactory.java @@ -407,11 +407,13 @@ public class JettyEmbeddedServletContainerFactory */ private Configuration getErrorPageConfiguration() { return new AbstractConfiguration() { + @Override public void configure(WebAppContext context) throws Exception { ErrorHandler errorHandler = context.getErrorHandler(); addJettyErrorPages(errorHandler, getErrorPages()); } + }; } @@ -421,6 +423,7 @@ public class JettyEmbeddedServletContainerFactory */ private Configuration getMimeTypeConfiguration() { return new AbstractConfiguration() { + @Override public void configure(WebAppContext context) throws Exception { MimeTypes mimeTypes = context.getMimeTypes(); @@ -429,6 +432,7 @@ public class JettyEmbeddedServletContainerFactory mapping.getMimeType()); } } + }; }